Pregunta de entrevista de Accenture

What is the contract between hasCode and equals method?