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 are the 6 boolean operators?
What does ide stand for?
How does system arraycopy work in java?
What are the 8 primitive data types in java?
Why generics are used in java?
Can we have return statement in finally clause? What will happen?
What is the difference between heap memory and stack memory?
Can a constructor call another constructor?
What is proper subset?
What is tochararray in java?
What is a class object?
Can we have a method name same as class name in java?
Why to use nested classes in java?
What is type inference in java8?
How to instantiate member inner class?