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 math in java?

856


Why stringbuffer is faster than string?

811


What is bufferedreader in java?

801


What is lazy programming?

794


What are the three types of design patterns?

751


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

751


What are extraneous variables examples?

766


What is bubble sorting in java?

836


What is the maximum size of array in java?

761


What is the use of pattern in java?

807


What is reverse function?

811


What happens to a static var that is defined within a method of a class?

801


What is class forname?

750


What is an abstract method in java programming?

821


What is local variable and instance variable?

828