HashMap Internal
HashMap Internal
Each bucket internally called one LinkList and every Linklist called Node and each node internally
contains 4 things Key, value, Hash code, next. Suppose I created some employee object
map.put(e1,"Dev") then How my HashMap will identify where we need to put this
index=hash &(n-1)
map.put(e2,"QA")
map.put(e3,"UAT")
then it evaluates same bucket 6 when hash map check it found already some value is available what
HashMap will do.
(Hashing collusion)
e1. equal(e3)