Java: How does the == operator work when comparing int?
<p>Given this Java code:</p>

<pre><code>int fst = 5;
int snd = 6;

if(fst == snd)
    do something;
</code></pre>

<p>I want to know how Java will compare equality for this case. Will it use an XOR operation to check equality?</p>
