 <p>Use <code>==</code> on objects to perform identity comparison.</p> <p>That is what the default implementation of <code>equals()</code> does, but one normally overrides <code>equals()</code> to serve as an "equivalent content" check.</p>