How does one can distinguish the functionality if implemented marker interfaces like Serializable, Cloneable, Remote, EventListener ?
Example : class MarkerDemo implements Serializable, Cloneable, Remote, EvenListener
How does one can distinguish the functionality if implemented marker interfaces like Serializable, Cloneable, Remote, EventListener ?
Example : class MarkerDemo implements Serializable, Cloneable, Remote, EvenListener
Marker interface is meant to be used by a framework or library.  It can be discovered through api (for exmple, method accpeting EventListener) or through reflection with the library accpeting an Object. This feature became obsolete with the introduction of annotations in Java 5