Java Rumblings
Pages
Home
TOC
Spring
Core Java
Design Pattern
Concurrency
Hibernate
Garbage Collection
Exception
Books
Java API
Collections
Reflection
Class Loader
Annotation
Generics
Wednesday, 27 April 2011
Restrictions on annotations
No annotation can inherit another.
All methods declared by an annotation must be without parameters.
Annotations cannot be generic.
They cannot specify a throws clause.
Also they are allowed to return only :
primitives
String
Class
enum
array of the above types
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment