dcsimg
LinkedIn
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Java
Expertise: Intermediate
Nov 12, 2019

Inspect Class Annotations

Class annotations can be inspected via reflection as follows:

Class clazz = Foo.class;
Annotation[] clazzAnnotations = clazz.getAnnotations();
Octavia Anghel
 
Close Icon
Thanks for your registration, follow us on our social networks to keep up-to-date