Before Java 5, comments were the only flexible mechanism Java had for metadata. Comments are not available at runtime and require parsing for data, leading to parsing difficulties.
Java 5 introduced annotations, allowing for metadata association with application elements using @interface, meta-annotation types, annotation processing via reflection API, and standard annotation types.
Collection
[
|
...
]