Why Compiler doesn't give error when we assign Integer to int in Java
<p>Why compiler doesn't give error when we assign Integer(object) to int(primitive)?</p>

<pre><code>int i;
Integer ii = new Integer(5);
i = ii;//no compilation error.
</code></pre>

<p>And this is the case with all other types(byte-Byte, float-Float)..</p>

<p>What is the reason? Am i missing something here?</p>
