Login
Remember
Register
Ask a Question
Which class contains clone method? Cloneable or Object?
+1
vote
asked
Jan 24, 2020
in
JAVA
by
rahuljain1
Which class contains clone method? Cloneable or Object?
#java-clone
#clone-method
Java-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jan 24, 2020
by
SakshiSharma
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.
...