Hi Rupali ,
In order to svae memory , there are some rules about autoboxing .
Fot Byte , Short and Integer , if literal value is in range of byte
Integer a = 100 ;
Integer b = 100 ;
a==b is true because one object of type Integer will be created and both
a and b will refer to this object .
Byte x = -10 ;
Byte y = -10 ;
x==y is true according to above rule .
For more information , Please refer to Java Language Spec 3rd edition .
