Mega Code Archive

 
Categories / Java Tutorial / Language
 

Some Restrictions

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. They must return one of the following: A simple type, such as int or double,           An object of type String or Class           An enum type           Another annotation type           An array of one of the preceding types