File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Annotations in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Annotations in java" Watch "Annotations in java" New topic
Author

Annotations in java

anish jain
Ranch Hand

Joined: Feb 03, 2010
Posts: 129
Could anybody please share the link explaining "Annotations" in java which can be easily understood?
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 9990
    
    7

http://www.google.com


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
anish jain
Ranch Hand

Joined: Feb 03, 2010
Posts: 129
Maneesh Godbole wrote:http://www.google.com


If this is the case, then why www.coderanch.com exists ?
just kidding..

I have no idea abt Annotations..I want some link describing "Annotations" in layman's terms
Sebastian Janisch
Ranch Hand

Joined: Feb 23, 2009
Posts: 1183
It's mostly used for configuration purposes. Instead of using bold XML people now tend to use annotations.

Quick example



this is a mapping between the property name and the column in the SQL table. As you can see, much simpler than using an XML file.


JDBCSupport - An easy to use, light-weight JDBC framework -
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
For basic language questions like this, the Sun Java Tutorial should always be your first stop: http://java.sun.com/docs/books/tutorial/java/javaOO/annotations.html


Ping & DNS - updated with new look and Ping home screen widget
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19543
    
  16

anish jain wrote:
Maneesh Godbole wrote:http://www.google.com


If this is the case, then why www.coderanch.com exists ?
just kidding..

Maneesh actually meant SearchFirst.

abt Annotations..

Please UseRealWords.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 13875
    
  10

Have a look at Annotations in Sun's Java tutorials. It starts with examples that show how annotations can be useful.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Pushkar Choudhary
Rancher

Joined: May 21, 2006
Posts: 425

anish jain wrote:
Maneesh Godbole wrote:http://www.google.com


If this is the case, then why www.coderanch.com exists ?
just kidding..


I believe Maneesh said that because you had asked the same question earlier and even at that time, you had been encouraged to Search First.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Annotations in java
 
Similar Threads
Q 4 H. Schildt (1): scope of features
what are annotations in java? What is it's use?
importance of the interface
xDoclet Vs Java annotations
Annotations in servlets