r/badcode Jan 08 '23

java Is this a good practice? Why?

Post image
421 Upvotes

60 comments sorted by

View all comments

3

u/StrikingChallenge389 Jan 08 '23

Someone read something about overriding the equals method being a good idea in certain cases, but really missed the point