title: Rehashing process in hashmap or hashtable
body: <p>How is the rehashing process done in a hashmap or hashtable when the size exceeds the maxthreshold value?</p>
  
  <p>Are all pairs just copied to a new array of buckets?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>What happen to the elements in the same bucket (in linked list) after rehashing? I mean will they remain in same bucket after rehashing?</p>