in which cases equals() is similar to ==?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/971954/difference-between-equals-and">Difference Between Equals and ==</a>  </p>
</blockquote>



<p>in which cases <code>equals()</code> works exactly like <code>==</code> operator?</p>

<p>It seems that they both act similar for <code>primitive data types</code>. Are there any other cases in which both of them act equal? </p>
