AND Digital Interview Question

What is the difference between equals() and hashCode()