Monday, 18 July 2016

Java Cloning - deep copy and shallow copy






Possible Duplicates:
Deep copy vs Shallow Copy
In Java, what is a shallow copy?
What is the difference between a deep copy and a shallow copy?






Can you please tell me what does it mean by cloning in java? what is deep copy and shallow copy, please explain with examples


Answer



I strongly recommend reading of Item 11 in Effective Java Second Edition


No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...