AND Digital interview question

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