2 Replies Latest reply: Feb 24, 2013 12:04 PM by Murray9654 RSS

    Does an annotation extends Annotation?

    Murray9654
      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