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
Is main is a keyword?
What is a class object?
What is difference between iterator and enumeration in java?
Give any two differences between C++ and java.
1.IN CASE OF DYNAMIC METHOD DISPATCH WHY WE USE REFERENCE VARIABLE,WE CAN USE THE DIFFERENT DEFINED OBJECT DIRECTLY TO ACCESS THE DATA MEMBER AND MEMBER FUNCTION OF THAT RESPECTIVE CLASS?WHAT IS THE MAIN FUNCTION OF "REFERENCE VARIABLE" HERE?
What is thread life cycle in java?
What is a condition in java?
How many types of gc are there in java?
What do you mean by composition in java?
Why to use nested classes in java?
What is the best definition for data?
Can a class have multiple superclasses?
Explain where variables are created in memory?
What is meant by design patterns?
What is difference between path and classpath variables?