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 is the default access specifier for variables and methods of a class?
why are there separate wait and sleep methods? : Java thread
Which is faster set or list in java?
I want to print “hello” even before main is executed. How will you acheive that?
If goto and const is reserve words than why it is not work in java?
What is a double?
Can we have return statement in finally clause? What will happen?
How can you make a class serializable in java?
Define how does a try statement determine which catch clause should be used to handle an exception?
What is an enumeration?
Difference between collection, collection and collections in java?
How does hashmap work in java ?
Why do we need autoboxing in java?
Why a dead thread occurs?
Describe 2 different ways to concatenate two strings.