Annotations specify what should be done without how to do it.
Annotations are declarative because they describe a behavior or attribute of code without implementing the logic. This abstraction allows developers to separate concerns, such as using @Entity in JPA to declare a class as a database entity, leaving the ORM details to the framework.