Home » Tip Bank » Java » Java APIs
  • Comment on this Article
Language: Java
Expertise: Intermediate
Jun 5, 2019
  • facebook
  • twitter
  • in
  • Email

WEBINAR:

On-Demand

Building the Right Environment to Support AI, Machine Learning and Deep Learning


Watch

Get the Class-Level Annotation

Via Java Reflection API, we can obtain all the annotations of a class as follows:

Class clazz = Foo.class;
Annotation[] clazzAnnotations = clazz.getAnnotations();
Octavia Anghel
 
Submit a Tip
Browse "Java" Tips
Browse All Tips
codeschool.com
enable-javascript.com