Tuesday, April 8, 2014

OCJP Practice question #7

12:07 PM

What will be the output of the following 

Java Program ?

Answer :
  • B, D, E, F, and G are correct because those lines of code will NOT compile. B,(line 6),is incorrect because List is abstract.
  • D, E, F, and G are all incorrect because polymorphic assignments can’t be applied to the generic type parameter.
  • A is incorrect based on the above. C is incorrect because line 7 uses legal syntax.

More Question here : OCJP


Post a Comment


© 2014 DieHardTechy . All rights resevered. Designed by Diehardtechy