Browsing tag: deep copy

Shallow copy of java objects

Shallow vs Deep Copy of Object by Clone() method


Previous post, we discussed on intention to create copy of object in java. In this post,we would discuss on different implementation of object copying. Before discuss on implementation, let us discuss on basic rule of clone copy implementation. 1) Copy of object and actual object should not refer at same object. If it is same,