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 types of methods in java?
What is the use of put method?
What is regex in java?
What is the maximum size of hashmap in java?
What is the use of http-tunneling in rmi?
What is int argc char * argv?
In java, what is the difference between method overloading and method overriding?
What is basic syntax?
Can final class have constructor?
What is substring in java?
what is a working thread? : Java thread
Write a program based on Java script program.
If a method is declared as protected, where may the method be accessed in java programming?
What is meant by tab pans?
What are the new features in java 8? Explain