posted 6 months ago
I'm reading Jeanne & Scott's complete OCP 11 study guide, chapter 13 about Annotations.
Following the syntax they give, I define an Annotation:
Exercise.java
I then create a class, with that Exercise annotation applied, than can print out it's own annotations:
PrintMyAnnotations.java
but nothing gets printed
If, instead of @Exercise, I use a @Deprecated annotation
I get, as expected, an annotation reported:
Could anyone tell me why, in the case of @Exercise, I'm not getting any annotation reported?