I have gone through the implementation of Java 8 Hashmap and arrived with below doubts. Please help me to clarify them:
- I read in an article which says that, nodes with the same hashcode will be added in same bucket as a linked list. It says that the new node to this linked list will be added in head insteadof tail to avoid tail traversal. But when I see the source code, new node is getting added in tail. Is that correct?
- I didn't completely understand this variable MIN_TREEIFY_CAPACITY. Is it like after this much count, entire map will be converted to tree(from array to tree)?