In Java what is the difference between two String initialization methods? : <blockquote>
  <p>String str = "ABC";</p>
  
  <p>String str2 = new String("ABC");</p>
</blockquote>

<p>In both the methods if i am looking for hashcode it is giving same hashcode</p>
