Home  >  Article  >  Java  >  Advanced Java Tutorial: Documentation Comments

Advanced Java Tutorial: Documentation Comments

黄舟
黄舟Original
2016-12-27 11:39:521630browse

After the opening /**, the first line or lines are the main description of the class, variables and methods.

After that, you can include one or more @ tags of any kind . Each @ tag must be at the beginning of a new line or followed by an asterisk (*) at the beginning of a line.

Multiple tags of the same type should be grouped together. For example, if you have three @see tags, place them one after the other.

The following is an example of a class description comment:

/*** This class draws a bar chart.
 
* @author Zara Ali
 
* @version 1.2
 
*/

The above is the content of Java Advanced Tutorial: Documentation Comments. For more related content, please pay attention to the PHP Chinese website (www.php.cn) !


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn