The concept Java annotations

table of Contents


Annotation

  • Annotation (Annotation), also known mark, it is the meta data of the program, but also mark the program code, Java 5.0 annotations are the new features added to the main used to do some description and explanation of the elements of Java program code;
  • Annotation used in the package, class, the foregoing fields, methods, local variables, method parameters, etc., these elements will be described and explained;
  • Using the reflection function can be analyzed program code;
  • System-defined annotation, the program can be checked at compile time;
  • Using the metadata annotation can be generated corresponding document;
Published 201 original articles · won praise 200 · Views 6365

Guess you like

Origin blog.csdn.net/Regino/article/details/104738522