What is cloneable interface?

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


Please Help Members By Posting Answers For Below Questions

What does serializing data mean?

716


How do you escape json?

753


What is the covariant return type?

767


What’s the difference between constructors and other methods?

726


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)?

856


What is a treeset class?

755


When should the method invokelater() be used?

754


Distinguish between a predicate and a function?

752


When will we use them?

802


What lambda means?

753


What is the default value of float and double datatype in java?

750


How many types of keywords are there?

747


If a method is declared as protected, where may the method be accessed in java programming?

696


Can we make constructors static?

934


How will you add panel to a frame?

843