Results 1 to 2 of 2

Thread: @ annotations

  1. #1
    mew is offline Member
    Join Date
    Nov 2007
    Rep Power

    Default @ annotations

    I have never used annotations in Java. I know they are new (may be introduced in Java 5). I just want to know their use. Can I use them in my simple Java classe for good reason or they are for some special tasks?

    Thanks for sharing knowledge.

  2. #2
    javaplus is offline Member
    Join Date
    Nov 2007
    Rep Power


    I am not well equipped with "java annotations" knowledge but they are used in EJBeans for different reasons. For instance:
    Java Code:
    import javax.ejb.Stateless;
    public class HelloWorld implements HelloWorld {
    public void greeting(String pName){
    System.out.println("Hello " + pName);

Similar Threads

  1. Annotations
    By yogesh_SC in forum Advanced Java
    Replies: 1
    Last Post: 04-02-2009, 10:33 PM
  2. Can I use annotations in superclass, and .cfg.xml files in subclasses in EJB3
    By narayanrec in forum Enterprise JavaBeans (EJB)
    Replies: 4
    Last Post: 01-06-2008, 03:40 AM
  3. Replies: 0
    Last Post: 01-02-2008, 05:24 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