· 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: Primitive String Class Enum
· 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: