One more thing and I observed that if the Wrapper class Litral is tacking form the pool if it's value is less than 127
Can any one tell why ?
class
Test {
public static void main(String[] args)
{
test inst_test = new test();
int i1 = 2000;
int i2 = 2000;
int i3 = 2;
int i4 = 2;
Integer Ithree = new Integer(2); // 1
Integer Ifour = new Integer(2); // 2
System.out.println( Ithree == Ifour );
inst_test.method( i3 , i4 ); // Return True
inst_test.method( i1 , i2 ); // Return Flase
}
public void method( Integer i , Integer eye )
{
System.out.println(i == eye );
}
}