Why need HashMap to relocate elements while rehashing?
<p>When hashmap reaches allowed size (capacity*loadFactor) then it automatically increased and after that all elements will be relocated into the new indexies. So, why need to perform this relocation? </p>