How many methods does cloneable interface contains?
Answer Posted / ram
@Dhinesz :
First of all, a marker interface is an interface by implementing that interface the class will get special behaviour. And it doesn't mean that, marker interface always not have any methods. Ex: Runnable interface is a marker interface and it has run().
Clone() method is a part of Object class, and if you implement cloneable interface for your class, it will force you to override the clone().
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is better- service oriented or batch oriented solutions?
What happens if we don’t override run method ?
Explain the difference between runnable and callable interface in java?
What is finally block?
What is the purpose of return statement?
Can we create an object of static class in java?
What is the purpose of void class?
What is the properties class?
What is command line used for?
What's the difference between int and integer in java?
What is nan in java?
Why javac is not recognized?
Does collectionutils isempty check for null?
What's the purpose of static methods and static variables?
What is string subsequence method?