Common hashCode Issues Every Java Developer Faces
Here’s why you should know more about equals and hashCode
Published in
5 min readFeb 12, 2022
What’s the difference between hashCode
and equals
? Can you use hashCode
to implement equals
? What are the benefits of custom hashCode
? What are the downsides of bad hashCode
?
All these can come to your next job interview. They were on mine.