importance of ordering of operands in Java's ==
<p>Sorry to keep asking the basics but I don't understand this simple code and why the first print statement goes through the compiler ok and even prints true, but the second print statement doesn't compile, giving me an "incomparable types" error:</p>

<pre><code>int in1 = 38;
Number Nn1 = in1;
System.out.println(in1 == Nn1);
System.out.println(Nn1 == in1);
</code></pre>

<p>I am not expecting this result, I thought it was pretty standard that == was symmetric?</p>

<p>I am using javac 1.6.0_26 and also NetBeans but get the same result, the first println statement compiles without problem and the second does not..</p>
