Name
Cloneable
Synopsis
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.
Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.