Tag: technology

Questions Related to technology

Can a constructor be declared as private?

  1. True

  2. False


Correct Option: A

The access modifier of an overloaded method is different. Is this valid?

  1. True

  2. False


Correct Option: A

The following code is compiled: double abc = 100.0; double xyz = abc/0; What is the result?

  1. Compilation Error

  2. Arithmetic Exception

  3. Compiles with no errors

  4. None of the above


Correct Option: C

Consider the following case: A return statement is there in the catch block. An exception occurs and is caught. Now will the finally block be executed?

  1. will execute

  2. will not execute

  3. Compilation Error

  4. Runtime Exception


Correct Option: A

Overloaded methods should not throw new checked exceptions that have not been thrown by the original method?

  1. True

  2. False


Correct Option: B

Is there any difference between Attack and Vulnerability?

  1. True

  2. False


Correct Option: A

Name worldwide free and open community focused on improving the security of application software?

  1. Cgisecurity

  2. ha.ckers.org

  3. owasp

  4. securityfocus


Correct Option: C