In this post we will see Equals and hashcode contract in java. Why it has been recommended to override both? What will happens if we don't override both.