Java Annotation
Annotations on Annotations(Meta Annotation) J2SE 5.0 provides four annotations in the java.lang.annotation package that are used only when writing annotations: @Documented—Whether to put the annotation in Javadocs @Retention—When the annotation is needed @Target—Places the annotation can go @Inherited—Whether subclasses get the annotation These four annotations are used while creating custom Annotations and are called Meta Annotations. The Target annotation The target annotation indicates the targeted elements of a class in which the annotation type will be applicable. It contains the following enumerated types as its value: @Target(ElementType.TYPE)—can be applied to any element of a class @Target(ElementType.FIELD)—can be applied to a field or property @Target(ElementType.METHOD)—can be applied to a method level annotation @Target(ElementType.PARAMETER)—can be applied to the parameters of a method @Target(ElementType.CONSTRU