AT&T interview question

hash code vs equals method