Overriding equals() and hashcode()
0. Introduction
When discussing HashMap in Java interviews, a very common follow-up question appears after explaining hash collisions:
"Why do we need to override both equals() and hashCode()?"
Howeve
ejjung.hashnode.dev4 min read