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

Annotations in Java: Everything You Wanted To Know

by Roland Hewage8mMarch 19th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

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

@roland-hewage

I'm a Data Science, Machine Learning, Deep Learning, Quantum Computing Enthusiastic..

Learn More
LEARN MORE ABOUT @ROLAND-HEWAGE'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Roland Hewage HackerNoon profile picture
Roland Hewage@roland-hewage
I'm a Data Science, Machine Learning, Deep Learning, Quantum Computing Enthusiastic..

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite