What is Marker interface in java? and what is clone?
Answer Posted / ajay tiwari
Marker interfaces are those interface which may contain any
method but they provide some special information to the JVM
about what type of class or object it can be.
EX. Cloneable is a marker interface with no method which
means but it provide information to the JVM that class's
object who implement it can be cloned.
Runnable is also a marker interface with a run() method
which provide the information to the JVM that class's
object which implement this is used as a thread.
while the collection interface doesn't provide any special
information to the JVM that's why it is not as a Marker
interface
| Is This Answer Correct ? | 33 Yes | 7 No |
Post New Answer View All Answers
Difference between vector and arraylist.
what is meant wrapper classes?
What is a generic data type?
Explain the difference between a Thread and a Process.
Is singleton thread safe in java?
How do you check if a character in a string is a digit or letter?
What is a java object and java application?
Can you explain the meaning of aggregation and composition
How will you call an Applet using Java Script Function?
What is the public method modifier?
What are the two types of streams offered by java 8?
Which collection is ordered in java?
What's the base class in java from which all classes are derived?
You're given a Boolean 2D matrix, can you find the number of islands?
What are different data structures in java?