WIT Software interview question

What is the difference between equals and hashcode and what do they do?