Answer Posted / prashant singh
cloneable interface is a marker interface,found in java.lang package.if we want to clone the object then we have to implement this interface.
if we do not implement it and try to make clone of object then CloneNotSupportedException is thrown.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What does serializing data mean?
How do you escape json?
What is the covariant return type?
What’s the difference between constructors and other methods?
What are the practical benefits, if any, of importing a specific class rather than an entire package (e.g. Import java.net.* Versus import java.net.socket)?
What is a treeset class?
When should the method invokelater() be used?
Distinguish between a predicate and a function?
When will we use them?
What lambda means?
What is the default value of float and double datatype in java?
How many types of keywords are there?
If a method is declared as protected, where may the method be accessed in java programming?
Can we make constructors static?
How will you add panel to a frame?