Pergunta de entrevista da empresa Accenture

What is the contract between hasCode and equals method?