Marker Interfaces就是沒有方法的空接口,如Serializable, Clonnable, Remote,等等,它們存在的意義是什麼呢?接口
標準回答是:used to indicate something to compiler or JVM.io
其實,Annotation也具備一樣的能力,甚至更能勝任。sed