I have to get something straight. Please tell me if I'm correct:
a = b means "
b". However, this is only part of the story when we talk about
Objects (as opposed to primitives). After the assignment both variables or fields reference the same object. When object allows changes (which
String does not) any changes you perform on
a take an effect on
b as well, and vice versa.
This can be illustrated with a simple diagram: