|
Shallow copies and deep copies are terms used when cloning. You can do what you're describing with immutables like Strings, but most Objects you can't, you'll be passing around the Object reference. I know because I recently had that problem and had to implement cloning of Objects. If you say "Object x = y;", 'x' and 'y' are the same object.
|