Every class extends object but why it is not possible for
every object to invoke clone() method. ideally protected
methods should be accessible from sub classes. isn't it?
Answer Posted / surendrababu koppula
clone() method must be called on only cloneable objects so sub class must implement Cloneable marker interface
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is the final variable?
What are the differences between path and classpath variables?
Will the jvm load the package twice at runtime?
What is a java string?
What is static keyword in java?
What is user defined exception in Java?
Have you ever used hashtable and dictionary?
Which is best ide for java?
What does java edition mean?
What is an object in java?
Is minecraft 1.15 out?
What are the major advantages of internal iteration over external iteration?
What are use cases?
Mention a package that is used for linked list class in java.
What carriage return means?