public interface Cloneable extends Cloneable
Cloneable extension to define the
java.lang.Cloneable#clone() as a public method.| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Creates a copy of the object.
|
Object clone() throws CloneNotSupportedException
CloneNotSupportedException - if the instance of the object cannot
be cloned. As this is extending Cloneable so
its sure it implements it, so this exception may be used for problems
on specific object instances.Object#clone()}.