Java annotation: Difference between revisions

Content deleted Content added
No edit summary
mNo edit summary
Line 1:
In [[programming]], a '''Java annotation''' is a way of adding [[metadata]] to Java [[source code]] that is available to the programmer at [[run-time]]. Many times it is used as an alternative to XML technology.
 
Java annotations can be added to program elements such as classes, methods, fields, parameters, local variables, and packages. Unlike tags added to Java documentation and processed with tools such as [[XDoclet]], Java annotations are completely accessible to the programmer while the software is running using [[reflection (programming)|reflection]].