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 14, 2014

OCJP Practice question #14

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

No comments: