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
Does string isempty check for null?
What is broken and continue statement?
what is the difference between Object Based Language and Object Oriented Language?
What do negative exponents mean?
What is class and its types?
What is finalize() function in java?
What does next mean in java?
What do you understand by looping in java? Explain the different types of loops.
What is the purpose of a volatile variable?
What is parameters example?
What is contractor means and methods?
what do you mean by stream pipelining in java 8? Explain
What are the restriction imposed on a static method or a static block of code?
Can you override private or static method in java?
What is meant by anonymous class?