Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Does an annotation extends Annotation?

Murray9654Feb 24 2013 — edited Feb 24 2013
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
This post has been answered by gimbal2 on Feb 24 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 24 2013
Added on Feb 24 2013
2 comments
367 views