Java compile time error in case of casting
<p>The below code gives me compile time error <strong>Type mismatch: cannot convert from int to byte</strong></p>

<pre><code>int i = 10;
byte b = i;
</code></pre>

<p>but the below doesn't</p>

<pre><code> final int i = 10;
 byte b = i;
</code></pre>

<p>I don't understand why compiler is behaving in case of final?</p>
