image.png
https://www.baeldung.com/java-custom-annotation
When creating custom annotations with methods,
- we should be aware that these methods must have no parameters,
- and cannot throw an exception.
- Also, the return types are restricted to primitives, String, Class, enums, annotations, and arrays of these types,
- and the default value cannot be null.