Interview Questions

What are the disadvantages of deep cloning?

Java Interview Questions for Cloning and Cloneable


(Continued from previous question...)

What are the disadvantages of deep cloning?

Disadvantages of using Serialization to achieve deep cloning –

* Serialization is more expensive than using object.clone().
* Not all objects are serializable.
* Serialization is not simple to implement for deep cloned object..

Other Interview Questions