title: Comparing String and Integer with equals
body: <p>The output of the below code is <code>false</code></p>
  
  <pre><code>String str = "3456";
  String str1 = "3456";
  System.out.println(Integer.valueOf(str).equals(str1));
  </code></pre>
  
  <p>I didn't understand it. I thought it will return <code>true</code>. As I am preparing for SCJP, understanding the reason behind it may be helpful. Can someone please help?</p>