javaidentityequalityobject-comparison

What is the difference between == and equals() in Java?


I wanted to clarify if I understand this correctly:


Solution

  • In general, the answer to your question is "yes", but...