0 votes
in JAVA by

Which class contains the clone method? Cloneable or Object?

1 Answer

0 votes
by

Which class contains the clone method? Cloneable or Object?

1) java.lang.Cloneable is a marker interface and doesn’t contain any method clone method is defined in the object class. 

2) It is also knowing that clone() is a native method means it’s implemented in C or C++ or any other native language.

Related questions

0 votes
asked Aug 21, 2022 in JAVA by sharadyadav1986
0 votes
asked Feb 13, 2020 in JAVA by rahuljain1
...