Java - Comments / Annotations

Java Conceptuel Diagram

About

Comments and annotations are ignored by the compiler but are useful to other programmers.

Comments

The Java programming language supports three kinds of comments.

Type of comments

/* text */

The compiler ignores everything from /* to */.

/** documentation */

This indicates a documentation comment (doc comment, for short). The compiler ignores this kind of comment, just like it ignores comments that use /* and */. The javadoc tool uses doc comments when preparing automatically generated documentation. For more information on javadoc, see the JavadocTM tool documentation .

text === The compiler ignores everything from // to the end of the line. ===== Documentation / Reference ===== * Lesson: A Closer Look at the “Hello World!” Application * Annotations





Discover More
Java Conceptuel Diagram
Java

Why has become so popular among application developers? Primarily because makes application developers more productive. It is a modern, robust, object-oriented language. ’s unprecedented popularity...
Java Conceptuel Diagram
Java - Java Executable (Java.exe or Javaw.exe)

See The standard launcher command (java or javaw.exe) in JDK or JRE is no more than a simple C program linked with the Java Virtual Machine. The launcher parses the command line arguments, loads the...
Jaxpintro Domapi
Java XML - DOM Jaxp

The DOM API of the JSE (ie Jaxp) in Java to process an XML file. To see other DOM implementation, see org.w3c.dom: Defines the Document class (a DOM) as well as classes for all the components...



Share this page:
Follow us:
Task Runner