Ververica Interview Question

What has one to consider while implementing 'hashCode' and 'equals' in Java?