Which Class Contains Clone Method in Java ?

clone() method is defined in Object class. Cloneable is a marker interface that doesn't contain any method..



You May Interest

What is the Difference Between a Class and an Object in Java ?

What is the Difference Between an Iterator and ListIterator in Ja ...

What are the Uses of Optional in Java ?

What is Volatile Keyword in Java ?

Why We Cannot Create a Generic Array in Java ?