NSEIT interview question

HashMap internal working, what if we implement only hashcode and not equals