title: What's the difference between == and .equals in Scala?
body: <p>What is the difference between <code>==</code> and <code>.equals()</code> in Scala, and when to use which?</p>
  
  <p>Is the implementation same as in Java?</p>
  
  <p>EDIT: The related question talks about specific cases of <code>AnyVal</code>. The more general case is <code>Any</code>.</p>