This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes difference between annotations Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "difference between annotations" Watch "difference between annotations" New topic

difference between annotations

Goran Markovic
Ranch Hand

Joined: Sep 26, 2008
Posts: 399
What is the difference between class-level annotations and field/setter annotations? Or, in what case, or what for, I should performed class level annotation (field/setter annotations are clearly explained and understandable)?
Jaikiran Pai

Joined: Jul 20, 2005
Posts: 10441


Which specific annotation are you looking at? Not all annotations can be applied at both class level and field/method level.

[My Blog] [JavaRanch Journal]
Goran Markovic
Ranch Hand

Joined: Sep 26, 2008
Posts: 399
Hi. I was thinking on @EJB annotation particularly.
I agree. Here's the link:
subject: difference between annotations
It's not a secret anymore!