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 tree node in java?
What is java objectoutputstream?
What are mutable classes?
What are different exception types exceptions available in java ?
how to create constants in java?
Can we inherit a class with private constructor?
How can you make sure that your singleton class will always return single instance in multi-threaded environment?
Can we cast any other type to boolean type with type casting?
What are different types of states exist for a thread?
What do you mean by multithreaded program?
Can constructor be synchronized?
What is locale?
How can you set the applet size?
What is the significance of listiterator?
What is the difference between stringbuffer and stringbuilder class?