Tech Me More

To quench our thirst of sharing knowledge about our day to day experience & solution to techincal problems we face in our projects.

Advertise with us !
Send us an email at diehardtechy@gmail.com

Tuesday, April 8, 2014

OCJP Practice question #7

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

No comments: