Declaration To declare an annotation you use @interface followed by a type name. @interface NonNegative { } We call these "annotation interfaces."1 Footnotes They share some properties with regular interfaces but it's best to think of them as their own thing. ↩