ContactUs :

Please send your Questions & Answers or Feedback to "mohan@javabook.org"

What is the diff between shallow cloning and deep cloning?

If a shallow copy is performed then it is copied but its contained objects are not, Java supports shallow cloning of objects by default.
If a deep copy is performed then not only the object has been copied but the objects contained within it have been copied as well. Serialization can be used to achieve deep cloning.
Related Posts Plugin for WordPress, Blogger...
Flag Counter