Annotations in Java: Everything You Wanted To Knowby@roland-hewage
1,119 reads

Annotations in Java: Everything You Wanted To Know

tldt arrow
Read on Terminal Reader🖨️

Too Long; Didn't Read

Annotations are a form of metadata that provides data about a program that is not part of the program itself. Annotation can be used by the compiler to detect errors or suppress warnings. Annotations have no direct effect on the operation of the code they annotate. They can apply to packages, types (classes, interfaces, enums and annotation types), variables (class, instance and local variables — including that defined in a for or while loop), constructors, methods and parameters. The at sign character (@) indicates to the compiler that what follows is an annotated piece of code.

People Mentioned

Mention Thumbnail

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Annotations in Java: Everything You Wanted To Know
Roland Hewage HackerNoon profile picture

@roland-hewage

Roland Hewage

Learn More
LEARN MORE ABOUT @ROLAND-HEWAGE'S EXPERTISE AND PLACE ON THE INTERNET.
react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa