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

Popular posts from this blog

Integrating Struts2 with Spring Security using Custom Login Form

Spring MVC- Redirect from one controller to another