title: What is difference in memory address and Java HashCode
body: <pre>
  
  Even if you have two different strings with the same value, they will have the same hashcode.
  
  In the below example HashCode is the same? But the memory address is the same? How I can get it in java.  
  
  </pre>
  
  <blockquote>
    <p>jshell> var a = new String("Ranga")</p>
    
    <p>a ==> "Ranga"</p>
    
    <p>jshell> var b = new String("Ranga")</p>
    
    <p>b ==> "Ranga"</p>
    
    <p>jshell> a.hashCode()</p>
    
    <p>$31 ==> 78727449</p>
    
    <p>jshell> b.hashCode()</p>
    
    <p>$32 ==> 78727449</p>
    
    <p>jshell> a == b</p>
    
    <p>$33 ==> false</p>
  </blockquote>