UKG interview question

equals() and hashcode() contract ?