Antra interview question

How hashCode(), equals() implemented, why override them?