This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Difference in specyfying Annotations Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Difference in specyfying Annotations " Watch "Difference in specyfying Annotations " New topic

Difference in specyfying Annotations

RaviNada Kiran
Ranch Hand

Joined: Jan 30, 2009
Posts: 528
Hello experts , bartender gurus ,

Please clarify this query for me

Is there any difference in using annotations at Method level and class Level( Annotations that are used here are applicable to both)

// Specified at Method Level

// // Specified at class Level

waiting for the responses .Thanks in advance/

If you want something you never had do something which you had never done
Reza Rahman
Ranch Hand

Joined: Feb 01, 2005
Posts: 580
I've explained this recently. Please take a look and let me know if you are still unclear.


Independent Consultant — Author, EJB 3 in Action — Expert Group Member, Java EE 6 and EJB 3.1
I agree. Here's the link:
subject: Difference in specyfying Annotations
jQuery in Action, 3rd edition