8
As marker interfaces are mostly useful for just marking a class, the same thing can be achievable through annotations. For example Cloneable interface can be @Cloneable.
So is there still need for marker interfaces or can be relpaced by Annotations? Is there any advantage/disadvantage of using any of them? I mean prefer one over other?