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 data type is a string?
Which is fastest collection in java?
What is difference between class and object in java?
Explain method local inner classes ?
What is the significance of java packages?
What does \ mean in regex?
Can we override static methods in java?
What is the use of a conditional inclusion statement in Java ?
Explain all java features with real time examples
When a byte datatype is used?
Explain about the main() method in java?
Why is stringbuffer thread safe?
Does string is thread-safe in java?
What is default switch case? Give example.
What is exception handling in java?