Question d’entretien chez Google

What is the use of the equals() and hashCode() methods in Java?