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

Monday, April 21, 2014

OCJP Practice question #19

What will be the output of the following Java program ?




Answer:
  • B is correct, It’s legal to invoke "new" from within a constructor, and it’s legal to call super() on a class with no explicit super class. On the real exam, it’s important to watch out for pre- and post-increment.


No comments: