Interview Questions

What are different types of cloning in Java?

Java Interview Questions for Cloning and Cloneable


(Continued from previous question...)

What are different types of cloning in Java?

Java supports two type of cloning: - Deep and shallow cloning. By default shallow copy is used in Java. Object class has a method clone() which does shallow cloning.

(Continued on next question...)

Other Interview Questions