BAE Systems interview question

One was about the reasons for overriding the Java equals and hashCode methods.