Note: The text for explanation of the program.
First, the single-line comments
Single-line comments can only be one line of code after the double slash in space, beyond this line is a comment does not take effect.
// I am a single line comment
Second, multi-line comments
Multi-line comments start with "/ *" and ends with "* /" in the middle part of the annotation content. You can span multiple lines.
/ *
I
is
a multi
-line
Notes
release
* /
Third, the documentation comment
Documentation comment begins with "/ *" to "* /" at the end, for the middle part of the annotation content. For generating API documentation
public class the User { / ** * User login method * @ apiparam userName username * @ apiparam passWord User Password * / public void LOGIN (the userName String, String passWord,) { ········· } }