A correctly overridden equals starts with
- A
return o.equals(this);
- Bcheck_circle
if (this == o) return true; if (!(o instanceof MyClass)) return false; ...
- C
return true;
- D
throw new Exception();
Explanation
Standard equals contract: handle reference equality, type, then content.