Thursday, April 10, 2014

OCJP Practice question #13

5:33 PM

What will be output of the following Java Program ?


Answer :

Choice C is correct.  IndexOutOfBoundsException

There is only one element in the list and index starts from 0 for ArrayList.


More Question here : OCJP



0 comments :

Post a Comment

 

© 2014 DieHardTechy . All rights resevered. Designed by Diehardtechy