Pregunta de entrevista de ClearScore

Is there a contract between equals and hashcode?