title: Why == in case of Integer check for value not reference in java , case different with new operator
body: <p>As we know that == in case of Objects returns true if pointing to the same reference else it returns false.</p>
  
  <p>So , if i have taken </p>
  
  <pre><code>    Integer a = new Integer("1"); // Creating Integer Object a
      Integer b = new Integer("1"); // Creating Integer Object b
  </code></pre>
  
  <p>and then perform a == b , then it returns true 
      but they both have different references. </p>