What is a rules for defining annotation types Jonas Stuart125515-Jul-2016javajava java i/o Updated on 20-Sep-2020
Jonas Stuart
15-Jul-2016· 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: