Java Annotations usages

  1. Information for the compiler — Annotations can be used by the compiler to detect errors or suppress warnings.
  2. Compile-time and deployment-time processing — Software tools can process annotation information to generate code, XML files, and so forth.
  3. Runtime processing — Some annotations are available to be examined at runtime.

Comments