Domanda di colloquio di Accenture

What is the contract between hasCode and equals method?