Cloning Flashcards
1
Q
What is cloning in java?
A
Cloning is a process of creating an exact copy of an existing object in the memory. Cloning may be shallow or deep. In java, clone() method is used to create a clone of an object.
2
Q
More on Cloning in Java
A
https://javaconceptoftheday.com/difference-between-shallow-copy-vs-deep-copy-in-java/