Java In A Nutshell, 5th Edition

Cloneable java.lang

Java 1.0 cloneable

This interface defines no methods or variables , but indicates that the class that implements it may be cloned (i.e., copied ) by calling the Object method clone( ) . Calling clone( ) for an object that does not implement this interface (and does not override clone( ) with its own implementation) causes a CloneNotSupportedException to be thrown.

public interface Cloneable { }

Implementations

Too many classes to list.

Категории