I am aware of what marker interface is and when we need to use it. One question is still not clear to me. If a marker interface does not have any method or body, how does
The only useful thing you can do with it is
if (instance instanceof MyMarkerInterface) { ... }