Java / Strings
How do I compare strings in Java?
== tests for reference equality to find whether they are the same object. equals() tests for value equality to find whether they are logically "equal".
More Related questions...
instanceofCloneable is checked? What is the default implementation of equals method in Object class.