title: how does hashmap ensure that each hash value is assigned a unique index in the hash table
body: <p>I want to understand how hash() and indexOf() methods of HashMap assign a unique index in hash table to a hashmap. In other words, why it is not possible for multiple hash values to be mapped to the same index.</p>