String s1 = new String("Cathy");
String s2;
s2 = s1; // same spot in memory
if (s1 == s2) // true
...
s2 = new String(s1); // each have their own memory (probably!)
if (s1 == s2) // false, and probably WRONG!
...
if (s1.equals(s2)) // true, and probably what you really want!
...