Yes, you are just making a reference to the object. You can clone the object if it implements Cloneable . Check out this wiki article about copying objects.
Yes, you are just making a reference to the object. You can clone the object if it implements Cloneable . Check out this wiki article about copying objects.