Content deleted Content added
No edit summary |
No edit summary |
||
Line 1:
In [[programming]] a '''Java
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 compleatly acessible to the programmer while the software is running using [[reflection (programming)|reflection]].
==History of Java annotation==
Java annotations were introduced to the Java Community Process as JSR-175 in [[2002]] and approved in September [[2004]]. Annotations became available with the [[JDK]] version 1.5. The feature was added to the Java language through the
==How Java annotations are processed==
==Syntax of annotation==
Line 20:
==Pros of using Java annotations==
Annotations allow the programmer to declare in their source code how the software should behave. It is an example of how
==Cons of using Java annotations==
|