© Kishori Sharan 2018
Kishori SharanJava Language Featureshttps://doi.org/10.1007/978-1-4842-3348-1_1

1. Annotations

Kishori Sharan1 
Montgomery, Alabama, USA
In this chapter, you will learn:
  • What annotations are

  • How to declare annotations

  • How to use annotations

  • What meta-annotations are and how to use them

  • Commonly used annotations that are used to deprecate APIs, to suppress named compile-time warnings, override methods, and declare functional interfaces

  • How to access annotations at runtime

  • How to process annotations in source code

All example programs in this ...

Get Java Language Features: With Modules, Streams, Threads, I/O, and Lambda Expressions 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.