News

The @Target annotation specifies the types of program elements to which an annotation can be applied. For example, if an annotation is designed for methods, you would use @Target(ElementType.METHOD).
For more information, see Repeating Annotations. Annotations can be applied to declarations: declarations of classes, fields, methods, and other program ... the Java SE 8 release, annotations can also ...