title: How HashMap retrieves different values if Key's hashcode is same but equals method return false
body: <p>I'm not able to understand on working pattern of HashMap. Kindly help to understand it.</p>
  
  <p>Say we have two objects <strong>Obj1</strong> and <strong>Obj2</strong> having same Hashcode as <strong>1212</strong>. Now when we run "==" and equals it returns false.</p>
  
  <p>Now i use <strong>ValueObj1</strong> and <strong>Valueobj2</strong> as value in a HashMap with Keys <strong>Obj1</strong> and <strong>Obj2</strong> respectively. <strong>I believe both the values will be save in same bucket making as List</strong>.</p>
  
  <p>My question how HashMap picks  <strong>Valueobj2  for Obj2 and  ValueObj1 for Obj1</strong>. Say there are n.. such objects and values.
  How this key--> value association works internally even though hashcode is same but values are different.</p>
  
  <p><strong><em>Assuming both condition equals is not overridden and overridden</em></strong>.</p>