This discussion is archived
2 Replies Latest reply: Feb 24, 2013 10:04 AM by Murray9654 RSS

Does an annotation extends Annotation?

Murray9654 Newbie
Currently Being Moderated
Hi, Does any annotation that we write extends "java.lang.annotation.Annotation?

I mean we are not allowed to extends any interface in the annotations that we create but doc on Annotation interface says that all annotations by default extends "java.lang.annotation.Annotation". so while compile time does the compiler adds this part?

Edited by: Muralidhar on Feb 24, 2013 11:56 PM

Edited by: Muralidhar on Feb 24, 2013 11:58 PM


  • Correct Answers - 10 points
  • Helpful Answers - 5 points