Annotations attach structured metadata to classes, methods, fields, parameters and records. Depending on @Retention, javac may discard an annotation after compilation, leave it in .class bytecode, or keep it visible to reflection at runtime.
More lessons in Complete Core Java