What is the main difference between shallow cloning and deep cloning of objects?
Answer:
-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.
Share To Friends Via:
More Questions For Programming in Java:
What is Java? (Answered) What is Java? . Posted On:Sat 20, March 2021 20:03:42 pm