why marker interfaces are there in java
Answer Posted / ravinder
When a class implements a marker interface, then the object
of that class is given with a special behavior. For example
if a class implements remote interface(available in
java.rmi.* package) object of that class acts as a Remote
Object. For this reason java provides Marker Interface.
| Is This Answer Correct ? | 7 Yes | 2 No |
Post New Answer View All Answers
What is a parameter example?
What is the abstraction?
Difference between operator overloading and function overloading
How can you traverse a linked list in java?
What is the difference between stream and buffer?
How garbage collection is done in java?
What are class types in java?
How do you pass by reference?
What loop means?
Explain the difference between jvm and jre?
What is data type example?
What are the drawbacks for singleton class?
What is a method type?
What kind of variables can a class consist?
What are the default and parameterized constructors?