• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

About Annotations

 
Joy Vergis
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am a new bee to Java5 environemt. I am reading annotation.


I am unable to understand the meta tag s? it is written that "Annotations are the meta-tag that you will use in your code to give it some life".


What is a meta-tag? Please explain it?
 
John Jai
Rancher
Posts: 1776
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Meta-tag here might denote that annotation gives information about the code. General examples include @SuppressWarnings("the argument") and @override where you tell the compiler to suppress the warnings and denote a method overrides its super class' method respectively.

Since it tells the META information they are just probably referring it as META tags...
 
Campbell Ritchie
Sheriff
Pie
Posts: 50171
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
John Jai wrote: . . . @override where you tell the compiler . . . method overrides its super class' method respectively. . . .
Not @override, but @Override.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic