> No, Java uses the same syntax with annotation inside comments.
Mostly incorrect, these are javadoc annotations which usually aren't used by code (aside from the javadoc extraction tool that is, and sometimes code editors for the @deprecated javadoc tag)
Since java 5, java has notations as language syntax e.g.
/**
* Some javadoc comment
*/
@Annotation
public void someMethod() {
// stuff
}
Mostly incorrect, these are javadoc annotations which usually aren't used by code (aside from the javadoc extraction tool that is, and sometimes code editors for the @deprecated javadoc tag)
Since java 5, java has notations as language syntax e.g.
http://docs.oracle.com/javase/tutorial/java/javaOO/annotatio... which are supported by a formal extraction framework and are syntax- and type-checked by the java parser itself, and attached as metadata to classes and methods by the same.Before java5, these were inside comments (alongside javadoc tags), fully processed by third-party tools and had no support from the JVM itself.