Declaration

To declare an annotation you use @interface followed by a type name.

@interface NonNegative {
}

We call these "annotation interfaces."1

1

They share some properties with regular interfaces but it's best to think of them as their own thing.