java Long datatype comparison
<p>Why the below code returning "false" for str3==str2 comparison eventhough its literal.</p>

<pre><code>   public class Strings {

public static void main(String[] args) {
    // TODO Auto-generated method stub
    Long str1=256L+256L;
    Long str2= 512L;
    Long str3= 512L;
    System.out.println( str3==str2);
    System.out.println(str1.equals(str2));
}
</code></pre>

<p>}</p>
