Target
@Target is a meta-annotation (an annotation used on other annotations) in Java that specifies the kinds of program elements to which an annotation type is applicable.It is defined in the package java.lang.annotation.Target Why is it used? By default, a custom annotation can be applied to any program element—classes, methods, fields, parameters, etc. The @Target annotation …