What is not true about annotation?
a) @deprecated is a marker annotation
b) Annotations precede other modifiers
c) Use of annotations avoid unnecessary use of marker interface
d) A program loop can be annotated
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
What is not true about annotation?
a) @deprecated is a marker annotation
b) Annotations precede other modifiers
c) Use of annotations avoid unnecessary use of marker interface
d) A program loop can be annotated
Hello abhishekraok2003 and welcome to the javaprogrammingforums.
I have found a link that may be helpful to you. Read through it. If you have any problems post here.
An Introduction to Java Annotations
Based on research it would appear that "C" is the right answer.
Last edited by Fendaril; May 16th, 2009 at 02:50 PM. Reason: Clarification
abhishekraok2003 (May 17th, 2009)
It is no where written explicitly that a program in a loop cannot be annotated.....