Tag: java shallow copying

Shallow Copying Vs Deep Copying Copying an Object

March 28, 2011 · 3 min read
###### Shallow Copying Vs Deep Copying: Copying an object involves getting another object with the same properties of the original. Here, there exists two ways – two objects having their own set of properties (instance variables) or both objects referring the same location of properties. Following gives the detailed discussion.