Java, Spring, Microservices, Interview, Coding.
key having the same hash or hash collision) Entry objects are stored, with in the same bucket, in a linked-list. In my code, I am always returning true for equals() method so the HashMap implementation “thinks” that the keys are equal and overwrites the value. So, in a way using hashCode() and