Frage im Vorstellungsgespräch bei Zephyr (CA)

How to ensure two distinct objects of a class having same values for member variables are treated as equal in Java?