How Integer object is created?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/9824053/how-and-operators-work-on-integers-in-java">How != and == operators work on Integers in Java?</a>  </p>
</blockquote>



<p>Integer i1 = 1000;
Integer i2 = 1000;</p>

<p>if(i1 == i2) is return false. Exactly what it happen how it is checking this condition here?</p>

<p>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.</p>
