Home Freemagazine Issue7 Java Developers Desk- Annotations
Questions:Ask|Latest

 
 

Share on Google+Share on Google+

Java Developers Desk- Annotations

Advertisement
Sun Microsystem added the features like annotation to make the development easier and more efficient in jdk 5.

Java Developers Desk- Annotations

       

 

  1. An Introduction to Annotations
    Sun Microsystem added the features like annotation to make the development easier and more efficient in jdk 5. The main objective to develop the annotations is to make the development easier. Annotations behaves like the meta. The literal meaning of meta data is data about data. Java also signifies this meaning. Annotations are like meta data, means you are free to add your code and can also apply them to variables, parameters, fields type declarations, methods and constructors.
      
  2. Fundamentals of annotations
    While going through the annotations you should consider two things. The first one is the ?annotation? itself and second one is the ?annotations types?. An annotation is the meta tag, used to give some life to the code you are using. While annotation type is used to define annotations so that you can use them while creating your own custom annotations. An annotation type definition appends an ?at? @ sign at the start of the interface keyword with the annotation name. On the other hand, an annotation includes the ?at? @ sign followed by the annotation type.

Read more information at:

http://www.javajazzup.com/issue7/page7.shtml

 

Advertisements

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: October 11, 2010

Related Tutorials

Ask Questions?    Discuss: Java Developers Desk- Annotations  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments
DMCA.com