title: Java: == in print statement gives different answers
body: <pre><code>String a = "abc";
  String b = "abc";
  
  System.out.println("Result .... " + a==b); // false
  System.out.println(a==b);                  // true
  </code></pre>
  
  <p>1<sup>st</sup> print statement prints <code>false</code> and 2<sup>nd</sup> prints <code>true</code>, though ideally it has to be <code>true</code>. Why is it <code>false</code> in 1<sup>st</sup> print statement ?</p>