java HashMap collision
问题 I was reading about how hashmap works. I was reading through the "What will happen if two different objects have same hashcode" . According to it if two objects has same hashcode both will be stored in LinkedList but as far as I know if two hashcode then previous one will get overridden with new one(correct me if I am wrong). Can someone please put more light on how hashmap use object as key internally and what will happen if two objects has same hashcode and how both objects will be fetched