Java in a Nutshell

Previous Chapter 25
The java.lang Package
Next
 

25.15 java.lang.Cloneable (JDK 1.0)

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 {
}

Extended By:

CharacterIterator

Implemented By:

BitSet, BreakIterator, Calendar, Collator, Date, DateFormat, DateFormatSymbols, DecimalFormatSymbols, Format, GridBagConstraints, Hashtable, ImageFilter, Insets, Locale, NumberFormat, TimeZone, Vector


Previous Home Next
java.lang.CloneNotSupportedException (JDK 1.0) Book Index java.lang.Compiler (JDK 1.0)

Java in a Nutshell Java Language Reference Java AWT Java Fundamental Classes Exploring Java