Google Interview Question

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