wat clarification on marker interface? i knew that marker interface is the an interface it doesnot have any methods, if it doesnot have any methods wat is the use of implementing this methods? as per basic java fundamentals , an interface is nothing but it has all abstract methods where u implementing an interface we need derive the methods?but wat about the case in marker interfce
The marker interface works like a boolean flag to indicate the class implementing this interface has some capability, but there is not method involved.
Joined: Jul 12, 2005
if it doesnot have abstratct methods, how it has become interface, as per basic java , interface is nothing but it has abstract methods, where u implement an interface , we need to derive the all methods of the an interface, But in marker interface it is NOT happening , why it is called as an interface
Joined: Jun 04, 2003
I think whether abstract method is defined is not the key that one interface becomes interface. Any way, in practice, the marker interface is used widely.
subject: wat clarification on marker interface and it use