title: Does the implementation of HasMap store key-value pairs in a linked list
body: <p>I read in a book where it was mentioned that when we put elements in HashMap, internally it is stored in bucket. My question is </p>
  
  <ol>
  <li><p>Does hashmap store key-value pair altogether in the form of linked list? or does it store in linked list only when there is a collision?</p></li>
  <li><p>How does it retrieve the object when 2 different objects are stored in the same bucket?</p></li>
  </ol>
  
  <p>Thanks!</p>