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 |
Which class should you use to obtain design information about an object
Describe what happens when an object is created in java ?
Is there any way to skip finally block of exception even if some exception occurs in the exception block?
Tell me the programme for this @ 1 2 @ @ @ 1 2 3 4
5 Answers Accenture, iGate, IntoNET, Value Labs,
Explain creating threads by extending thread class ?
Is java free for commercial?
What is garbage collection in Java, and how can it be used ?
32 Answers Accenture, HCL, Infosys, Sara, SITS, TCS, Wipro,
what is run time polymorphism
What is the memory leak in java?
What is the difference between sleep and wait in java?
What is meant by inheritance and what are its advantages?
what is meant by string pooling?
12 Answers Oracle, Polaris, Tribal Fusion, Wipro,