JVM Knowledge

A marker annotation is a shorthand designed for use with marker annotation types (§9.6.1).

MarkerAnnotation:
  @ TypeName

It is shorthand for the normal annotation:

@TypeName()

It is legal to use marker annotations for annotation types with elements, so long as all the elements have default values (§9.6.2).

Example 9.7.2-1. Marker Annotations

Here is an example using the Preliminary marker annotation type from §9.6.1:

@Preliminary public class TimeTravel { ... }