What is a rules for defining annotation types
Ask by Jonas Stuart
Updated 20 Sep 2020
· An annotation declaration starts with @interface, followed by the annotation’s name.
· To create parameters for an annotation, you declare methods in its type.
· Method declarations should not contain any parameters.
· Method declarations should not contain any throws clauses.
Return types of the method should be one of the following: