Marker interface means interface which have no methods. Then why we call the Runnable interface as a marker interface, even though it has run() method. And one more thing how many marker interfaces are there in java ?
+3
A:
Runnable is not a Marker interface. AFAIK, Serializable, Clonable, SingleThreadModel, EventListener, RandomAccess, Remote are Marker Interfaces.
Aviator
2010-02-19 05:58:24
+1
A:
Then why we call the Runnable interface as a marker interface
We don't. You just made that up.
EJP
2010-02-19 07:59:15