JAVA Annotations
JAVA Annotations JAVA Introduced annotations in the release of 5. To make anything behave as annotation mainly we have about 3 interfaces documented, Retention and target. Documented : Documented is an interface where if any interface acts as annotation it should annotate with @Documented and it should use @interface for annotation. The documentation interface does not contain any methods but it is not a marker interface as it is used as a meta-annotation. It’s applied to other annotations and should be documented by tools such as Javadoc. Retention : Retention indicates how long annotations with an annotated interface are to be retained. The default behavior of retention is CLASS. We have to annotate with @Retention and send the arguments to the method value of an ENUM, RetentionPolicy. RetentionPolicy...