Home > DeveloperSection > Interviews > What is the main difference between shallow cloning and deep cloning of objects in java?

Posted on    April-10-2014 11:22 PM

 Java Java 
Ratings:
 1 Answer(s)
  1268  View(s)
Rate this:

Sumit Kesarwani

Total Post:782

Points:3910
Posted on    April-10-2014 12:00 AM

 Java supports shallow cloning of objects by default when a class implements the java.lang.Cloneable interface.

Deep cloning through serialization is faster to develop and easier to maintain but carries a performance overhead.


Don't want to miss updates? Please click the below button!

Follow MindStick