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
How many bytes is a string?
What is polymorphism java example?
What is variable and example?
Can you explain the meaning of aggregation and composition
What are recursive functions?
Define packages in java?
What is parseint?
Can you inherit from an abstract class java?
What is a parent class in java?
When do I need to use reflection feature in java?
When should you make a function static?
Can we use return in constructor?
What is natural ordering in java?
Can we have more than one package statement in the source file?
List implementations of list interface?