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.


Popular posts from this blog

Spring MVC- Redirect from one controller to another

Integrating Struts2 with Spring Security using Custom Login Form