Java - Annotation Marker Annotation

Introduction

A marker annotation type is an annotation type without any elements.

A marker annotation is used by the annotation processing tools.

@interface Marker {
  // No element declarations
}
@Marker
public class Test {
        // Code goes here
}