BlackRock interview question

What is the relationship between hashcode function and the equals function in java?