Engaged Employer
What is the cost of hash-code collision in HashMap? What if hashCode() return '1'?
Anonymous
The HashMap performance will degrade and all keys end up storing in one bucket as a binary tree. The algorthnic complexity is O(log(n)) in this case
Check out your Company Bowl for anonymous work chats.