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 are the different types of inner classes?
What is a boolean output?
How do you sort in descending order in java using collections sort?
What do you understand by the term singleton?
What are operators and its types?
Name the components that are termed to be Heavy-weight component but available in Light-weight components?
What is core java called?
How do you ensure that n threads can access n resources without deadlock?
How is garbage collection controlled?
Tell me are there implementations for sorting and searching in the java libarary?
What is the java virtual machine?
Explain about varargs in java?
How to perform bubble sort in java?
How do you reverse a word in java?
What is bubble sorting in java?