Annotations help to color the code, enable great expressive power and are elegant and granular. Annotations are used like modifiers. They are convenient to be placed in various places and can add values.
Subramaniam said that Java has few Annotations built in such as deprecate, Override, Suppress Warnings and recommended the usage of Override Annotation while using Java.
“One can use @interface to define an annotation. Annotation retention can be used at Source code, Byte code and Runtime. The upcoming Java 7 has extensive use of Annotations,” he added.
Get most out of your technology infrastructure investments with Dell
About CIOL | Media Kit | Site Map | Contact Us | Help | Write to us | Jobs@CyberMedia | Privacy Policy
Copyright © CyberMedia India Online Ltd. All rights reserved. Usage of content from web site is subject to Terms and Conditions.