Saturday 16 August 2014

Reflections and Annotations

An annotation is metadata. Annotations do not directly affect program semantics, but they do affect the way programs are treated by tools and libraries, which can in turn affect the semantics of the running program. Annotations can be read from source files, class files, or reflectively at run time.

You can access annotations of a class, method, field, parameters at run time using reflections.



Prevoius                                                 Next                                                 Home

No comments:

Post a Comment