Monday, April 14, 2014

OCJP Practice question #14

12:50 PM

What will be the output of the following Java Program ?



Answer :

Choice D is correct.

""=="" will compare a string with same string in string constant pool so true

"A"=="A" will compare a string in constant pool so true

"a==A" is string so prints a==A

More Question here : OCJP

0 comments :

Post a Comment

 

© 2014 DieHardTechy . All rights resevered. Designed by Diehardtechy