java.lang
Interface Cloneable


public interface Cloneable

A class implements the Cloneable interface to indicate to the Object.clone() method that it is legal for that method to make a field-for-field copy of instances of that class.

Attempts to clone instances that do not implement the Cloneable interface result in the exception CloneNotSupportedException being thrown.

The interface Cloneable declares no methods.

Since:
JDK1.0
Version:
1.10, 02/02/00
Author:
unascribed
See Also:
CloneNotSupportedException