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


Please Help Members By Posting Answers For Below Questions

What is tree node in java?

518


What is java objectoutputstream?

531


What are mutable classes?

513


What are different exception types exceptions available in java ?

467


how to create constants in java?

595






Can we inherit a class with private constructor?

556


How can you make sure that your singleton class will always return single instance in multi-threaded environment?

555


Can we cast any other type to boolean type with type casting?

526


What are different types of states exist for a thread?

536


What do you mean by multithreaded program?

541


Can constructor be synchronized?

527


What is locale?

590


How can you set the applet size?

561


What is the significance of listiterator?

557


What is the difference between stringbuffer and stringbuilder class?

556