O'Reilly logo

The class of Java by Pravin Jain

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 23

Annotations

What are annotations? From Java 5 onwards there is a new reference data type added in the Java language, which allows us to annotate any programming element. Annotations are used like modifiers, which are created by the developer. We can create annotations which can be used with any kind of target type (programming element) within the Java source file. These are kinds of additional modifiers which a developer creates, normally to be used by some other kinds of processing tools (known as Annotation Processing Tools). javadoc is an example of a similar tool. It works on the Java source file. It processes the source file and generates the documentation. While processing the Java source file the javadoc utility uses the documentation ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required