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 major advantage of external iteration over internal iteration?
What is the purpose of lambda expressions?
What do heavy weight components mean in java programming?
Is java still necessary?
What is meant by string is immutable?
Why Do I Get A "permission Denied" Error After Downloading The .jnlp Java Launcher For The Vkvm?
Are arrays primitive data types?
What does n mean in java?
Why is java called the platform independent programming language?
What is set in java?
Can interface be private in java?
Why do I need to declare the type of a variable in java?
Is the milky way in a void?
What is double parsedouble in java?
How do you create a reference in java?