jeetendra Choudhary wrote:I have Doubt on behavior of !=, == and equals method in following example from K&B. please some one explain little bit more about that. sorry for such stupid question.
Thanks In Advance.
The output is:
I am just a human compilator
If we perform == on Integer, Short and Byte wrapper objects whose boxing value is from interval (-128; 127), the operator returns true. Very important is that those values must be AUTOboxed. If we would create them using operator new, we were given false by ==. new always allocates new space in memory.
This question was answered a couple of times, so read the forum carefully, please
Also suggest me practice questions objective wise so i can solve to revise the previous objectives learned. Have played the rules roundup game lots of time it helped me very very much and thanks alot for that. but it still lacks questions for 1.6. please suggest me objective wise questions.
MCP, AWS Certified Developer Associate, Preparing for OCPJP...!!
You don't know me, but I've been looking all over the world for. Thanks to the help from this tiny ad:
a bit of art, as a gift, that will fit in a stocking