Wissen Infotech interview question

What is the contract between hashCode and equal method