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:
Post a Comment