Tag: programming languages

Questions Related to programming languages

  1. Web services

  2. Enterprise JavaBeans

  3. Java Servlets

  4. All the above


Correct Option: D

What will be the output ?

  1. Inside TRY Inside FINALLY

  2. Inside TRY

  3. Inside TRY Inside CATCH Inside FINALLY

  4. None of the above


Correct Option: A

Which one is faster in java ?

  1. No difference

  2. 1

  3. 2

  4. Cannot be determined


Correct Option: B
  1. The value of d is 65

  2. The value of d is a

  3. The value of d is A

  4. Compilation Error


Correct Option: D

After the following code fragment, what is the value in a? String s; int a; s = "Foolish boy."; a = s.indexOf("fool");

  1. -1

  2. 0

  3. 4

  4. none


Correct Option: A

Given the following code fragment: int A[]; int i = 0; A = new int A[4]; while (i < 4) { A[i] = 10; i = i + 1; } What is the value of A[3]?

  1. 0

  2. 3

  3. 10

  4. Compile Error


Correct Option: C