One of the coolest things that java permits to do, is add annotations on classes and methods.
This feature can extremely useful, for example build your how unit of tests or something else.
The interface is here you define or annotation.
And in your class.
Output
Annotation class Main
name: Something
Version: This is a annotation
No comments:
Post a Comment