Pergunta de entrevista da empresa Luxoft

What's a contract between equals() and hashcode()?