Java / Annotations
Explain Annotations in Java.
Java Annotations are metadata that provides data about the program which is not part of the program itself. The annotation has no direct impact on the operation of the code it annotates. Java Annotations are introduced in Java 5.
The below are some of the uses of Annotations.
Annotation provide information to the compilers to detect errors and suppress warnings.
Facilitates compile time and deployment time processing so that other tools can generate code, xml files and so on.
Some annotations allow runtime processing such as interception.
More Related questions...