How HashTable and HashMap key-value are stored in the memory?

后端 未结 4 1577
谎友^
谎友^ 2020-12-04 22:46

I understand there is a hashing technique is applied to a key to store its value in the memory address.

But I don\'t understand how the collision is happeni

4条回答
  •  猫巷女王i
    2020-12-04 23:22

    Here Hash does not mean for Hashing techniques such as MD5. Its the HashCode of memory location used to store an Object for a particular key.

    Readings:

    • How does Java hashmap work?
    • How HashMap works in Java

    This is somewhat more clearer explanation of How HashMap works?

提交回复
热议问题