Key Points on HashMap
Key Points on HashMap
- HashMap works on the principal of Hashing.
- HashMap uses LinkedList for storage.Each Node stores key and value.
- HashMap is not synchronised.
- hashcode() method is applied on the key object to store the value.
- override hashCode equals when implementing a hasmap.
- When the size of the hashmap exceeds the threshold defined loadfactor,a new buket location is created with double the sizeand starts rehashing.
Comments
Post a Comment