Question d’entretien chez Accenture

What is the contract between hasCode and equals method?