Barclays interview question

What is a difference between equals and hashcode.