|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
CloneNotSupportedException
|
MIT ACM/IEEE Programming Competition |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |