5. Annotations
Chapter Contents
Annotations, a form of metadata, provide data about a program that is not part of the program itself. Annotations have no direct effect on the operation of the code they annotate. Annotations have a number of uses, such as the following:
Information for the compiler. Annotations can be used by the compiler to detect errors or suppress warnings.
Compile-time and deployment-time processing. Software tools can process annotation information ...
Get The Java® Tutorial: A Short Course on the Basics, 6th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.