Java / Object, Class and Package
Different type of cloning in Java.
Java supports 2 type of cloning: - Deep and shallow cloning. By default shallow clone is used in Java. Object class has a method clone() which does shallow cloning.
More Related questions...