Equals() compares the object's contents (deep comparison)
== compares the reference values (shallow comparison)
"The equals() method determines whether two strings have the same characters, whereas the == operator determines if two operands refer to the same String object. == actually tests to see if the references in the variables point to the same memory address." -
http://www-128.ibm.com/developerwork...-ebb0917a.html
- A.Kahtava