title: How these two references point to the same Object in the heap?
body: <p>Could anyone explain how these two references will point to same object in the heap?</p>
  
  <pre><code>String strA = new String("APPLES");
  String strB = new String("APPLES");
  </code></pre>