Java中的Marker Interfaces有什么用

Marker Interfaces就是没有方法的空接口,如Serializable, Clonnable, Remote,等等,它们存在的意义是什么呢?

标准回答是:used to indicate something to compiler or JVM.

其实,Annotation也具有同样的能力,甚至更能胜任。

原文地址:https://www.cnblogs.com/wangyinhui/p/4151629.html