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
What is stringwriter?
How do you check if a string contains only numeric digits?
Can private class be extended java?
design an lru cache in java?
What is basic syntax?
What are aggregate functions explain with examples?
What is difference between static variable and global variable?
Is list thread safe in java?
Is set thread safe java?
What is temp in java?
Define inheritance with reference to java.
Does A Class Inherit The Constructors Of Its Superclass?
What do you understand by a Static Variable?
What does flag mean in java?
What is the size of int?