Multiple choice

Which interface is automatically extended by all annotation types?

  1. java.lang.annotation.Annotation

  2. java.lang.Annotation

  3. java.lang.Annotations

  4. java.lang.reflect.Annotation

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

This answer is correct. All annotation types extend the Annotation interface which is from java.lang.annotation package. Annotation is a super-interface of all annotations.