Question d’entretien chez Broker Consulting

What is the contract between equals() and hashCode() in Java?