How many methods does cloneable interface contains?
Answers were Sorted based on User's Feedback
Answer / janet
It is not having any method because it is a TAGGED OR
MARKER interface.
| Is This Answer Correct ? | 13 Yes | 2 No |
Answer / dhinesz
What about clone() method?. Whether it is defined by
Cloneable Interface?Please clarify this as marker interface
means doesn't have any methods right?
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / krunal
A top-level class may be public, abstract, or final.
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / 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 |
How to solve the problem of generating the unique hash keys with hash function?
What is JDBC Driver interface?How can you retrieve data from the ResultSet
Any one can explain how the inerface uses in java. give with example.
what is actual real time using of oops concepts in projects(Interface,polymorphism.abstraction.........)
Why vector is used in java?
Why charat is used in java?
What do you understand by classes in java?
Integer.parse Int(bf.readLine(System.out.println("enter value for n["+m+"]:"))); can it run under this
Define an applet in java?
What is the life-cycle of an object?
Can a class be declared as protected?
What is the difference between a scrollbar and a scrollpane?