Results 1 to 3 of 3
  1. #1
    java_no1 is offline Member
    Join Date
    May 2011
    Location
    Bengaluru
    Posts
    14
    Rep Power
    0

    Default what is annotation? what is the use?

    In the following snippet of code , could you please explain annotation?


    @Target(ElementType.METHOD)
    @Retention(RetentionPolicy.CLASS)
    public @interface TestAnnotation
    {
    // Property Definitions here.
    }

  2. #2
    Petr's Avatar
    Petr is offline Senior Member
    Join Date
    Jan 2011
    Location
    Russia
    Posts
    620
    Rep Power
    4

    Default

    Annotation is mechanism, which offer to embedded meta-code For example Testing modules or Override.
    Skype: petrarsentev
    http://TrackStudio.com

  3. #3
    goldest's Avatar
    goldest is offline Senior Member
    Join Date
    Oct 2009
    Location
    Pune, India
    Posts
    469
    Rep Power
    6

    Cool

    Quote Originally Posted by java_no1 View Post
    ...could you please explain annotation?
    Read this : Annotations

    Goldest
    Java Is A Funny Language... Really!
    Click on * and add to member reputation, if you find their advices/solutions effective.

Similar Threads

  1. @Override Annotation
    By Unsub in forum New To Java
    Replies: 2
    Last Post: 01-30-2010, 03:06 PM
  2. image annotation
    By rahaman.athiq in forum AWT / Swing
    Replies: 0
    Last Post: 11-19-2008, 09:03 AM
  3. Image annotation
    By rahaman.athiq in forum AWT / Swing
    Replies: 1
    Last Post: 11-17-2008, 10:28 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •