In order to save memory, two instances of the following wrapper objects will always be == when their primitive values are the same: Boolean Byte Character from \u0000 to \u007f (7f is 127 in decimal) Short and Integer from -128 to 127
Note: The Java Language Specification does not explicitly guarantee this behavior for long values within the range of a byte. [ December 21, 2006: Message edited by: Kalpesh Jain ]
hi all, can you please mention the source from where to study above all. is it part of SCJP1.4??? I've read K&B (SCJP1.4) but this is not covered there so please tell me the source for the same. Regards