Learning to create and use Java annotation

By : |March 18, 2010 0

BANGALORE, INDIA: Spark IT 2010 today opened a window of knowledge to Java Annotation. Taking a session named Learning to create and use Java Annotations, Dr. Venkat Subramaniam, founder, Agile Developer Inc. explained that Annotations enhance ability to extend the capability of a language without being part of the community.

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.

No Comments so fars

Jump into a conversation

No Comments Yet!

You can be the one to start a conversation.