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 do you mean by jjs in java8?
What is private static in java?
Which java collection does not allow null?
What is module in project?
Can we create an object of private class?
why an outer class cannot be declared as private?
What is nan inf?
When a thread is executing a synchronized method , then is it possible for the same thread to access other synchronized methods of an object ?
What is a Hash Table? What are the advantages of using a hash table?
What is the public field modifier?
What is a variable simple definition?
What is a war file?
Is java written in c?
What is __ init __ functions?
Which list is sorted in java?