Java - Collection - HashMap

HashMap:

  • No ordered
  • One Null Key & Multiple Null Values

How HashMap Works Internally:
  • Using Hashing Techniques.
  • Hashing is a process of converting an object into integer using hashcode() method.
  • Hashcode() - It returns memory reference of object in integer form.
  • You can give your own implementation in hashcode method.

Bucket:
  • Bucket is the element of HashMap Array.
  • Used to store nodes.
  • Two or more nodes can have the same bucket.

Comments

Popular posts from this blog

How to set Java Object into JaxBElement ?

GitLab