InThe 60-Second ProgrammerbyMarcelo Domingues·Sep 7equals() vs hashCode() ⚖️Override one, you must override the other.
In@OverridebyHüsna POYRAZ·Aug 2What is HashCode/Equals Contract and How Do You Use ItUnderstanding the fundamental contract that makes Java collections work correctly
InSystem WeaknessbyMD Mehedi Hasan·Jun 19A Deep-Dive Into Hunting Prototype Pollution To XSS on Hashnode: Live POC & Exploitation…Hashnode is a popular blogging platform built on Next.js. While exploring its API surface during a routine security assessment, I noticed…
InJavarevisitedbyFiras Ahmed·Dec 19, 2025Why Do We Need to Override hashCode() with equals()? (equals-hashCode part 2)Photo by Stefan Heinemann on Unsplash
inside Nikita's Mind·Nov 26, 2025The equals() and hashCode() Contract That Silently Broke Production for Me (and 90% of Java Devs…Our duplicate-user detection system suddenly started letting the same person create 40 accounts per second. No code had changed. The bug…
Ayoub Taouam·Oct 21, 2025Understanding equals() and hashCode() in Java: Why Your HashMap Might Be MisbehavingWhy your Java HashMap or HashSet may not work as expected and how equals() and hashCode() can silently break your collections.
Sk Niyaj Ali·Aug 8, 2025The Secret Behind Kotlin’s hashCode: Why 31 is the Magic NumberHave you ever wondered why that mysterious number 31 keeps showing up in hashCode implementations? Let’s uncover the fascinating story…
Vinotech·Aug 4, 2025What happens if hashCode() and equals() are not overridden correctly in HashMap?If hashCode() and equals() are not overridden correctly in a HashMap, it can lead to unexpected behavior, such as incorrect key lookups…
InCodeElevationbyUmesh Kumar Yadav·Jul 8, 2025The Golden Rule of Java: Why You Must Override hashCode() When You Override equals()In Java, the relationship between the equals() and hashCode() methods is a fundamental contract. Breaking it can lead to baffling bugs…