+1 vote
in JAVA by
Which class contains clone method? Cloneable or Object?

1 Answer

0 votes
by
java.lang.Cloneable is marker interface and doesn't contain any method clone method is defined in the object class. 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
...