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
Difference between character constant and string constant in java ?
Is array primitive data type in java?
What do you mean by default constructor in java?
What is high level language in computer?
What kind of variables can a class consist?
What is the this keyword?
What is parsing a sentence?
What do you mean by jjs in java8?
Which is fastest collection in java?
Is char a data type in java?
What is the difference between equals() and?
please send me hr interview questions in it industry
Is hashset sorted in java?
What is the difference between overriding and overloading in OOPS.
What is java ceil?