posted 13 years ago
Hi All,
I was having this discussion with my friend regarding Marker interface.
Where a generalize statement is "Interface without any method is Marker interface". We were discussing up to what extent it is correct.
Argument : Interface without any method is Marker interface.
Counter Argument : What if the code using particular interface is not using it as marker purpose.
Support statemetns :
Case : 1) Interface is having constants and no methods.
Case : 2) There is an interface 'I' without any methods, but no one is implementing that interface. Is it still Marker interface?
Case : 3) Serializable is marker interface, after only the code using serializable object to converts it in to bytes.