Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Annotations define metadata (data about data) that’s specified in the application source code. You can think of annotations as instructions to the compiler and runtime environment about tasks that should be performed during compilation or at runtime.
Support for annotations was added to Java in Java 5. Annotations are represented by the @ symbol followed by the name of the annotation (like @Controller or @Resource).