Possible Duplicate:
How != and == operators work on Integers in Java?
Integer i1 = 1000; Integer i2 = 1000;
if(i1 == i2) is return false. Exactly what it happen how it is checking this condition here?
if i assign lesser than 128 in both i1 and i2 if condition is true. How object is created here, it is comman for all the values or different? Could someone clarify this scenario.