How to describe Java code with annotations

You’ve probably encountered situations where you need to associate metadata (data that describes other data) with classes, methods, and/or other application elements. For example, your programming team might need to identify unfinished classes in a large application. For each unfinished class, the metadata would likely include the name of the developer responsible for finishing the class and the class’s expected completion date.

Before Java 5, comments were the only flexible mechanism that Java had to offer for associating metadata with application elements. However, comments are a poor choice. Because the compiler ignores them, comments are not available at runtime. And even if they were available, the text would have to be parsed to obtain crucial data items. Without standardizing how the data items are specified, these data items might prove impossible to parse.

To read this article in full, please click here

\"IT電腦補習
立刻註冊及報名電腦補習課程吧!

Find A Teacher Form:
https://docs.google.com/forms/d/1vREBnX5n262umf4wU5U2pyTwvk9O-JrAgblA-wH9GFQ/viewform?edit_requested=true#responses

Email:
public1989two@gmail.com






www.itsec.hk
www.itsec.vip
www.itseceu.uk

Be the first to comment

Leave a Reply

Your email address will not be published.


*