Possible Duplicate:
What is the use of marker interfaces in Java?
What is the use of extending marker interface.
Possible Duplicate:
What is the use of marker interfaces in Java?
What is the use of extending marker interface.
A marker interface is exactly that: A means of marking that a class is or does certain things, even if those things are not expressed as actual methods. Marker interfaces date from very early on; these days while you might use one, you might also look at using annotations instead.
It is an interface with no methods. It is just used to "mark" Java classes which support a certain functionality like Serializable and Cloneable.
a marker interface is used to add additional information to an object (see for example: http://en.wikipedia.org/wiki/Marker_interface_pattern). I dont know what you mean with extending, but a object implements a marker interface.
for example the serializable interface in java:
A class implements this interface to indicate that its non-transient data members can be written to an ObjectOutputStream
Marker interface are having no methods and they just use to identify the liablity of a class at run time, as your class suppose to have implemented B iterface and then at any point u can check instance of your class pertaining to that interface. U can do whatever you want.