Comments
What is a comment? is the meaning of annotation, which is mainly used to explain Java code. There are three ways to annotate in Java (1)://: Comment Line statement
Example:
Defines an int variable with a value of 10 int a = 10;
(2):/* * *: Multiline comment
Example:/*
This is a comment that will not be used by Java to run this is the second line of comments, can have any number of lines */
(3):/** * *: Documentation comments
A document comment that precedes the declaration of a variable, method, or class, indicating that the comment should be placed in an automatically generated document (the HTML file generated by the Javadoc command) as a description of the claim.
Example:/**
* This is a test of a document comment
* It will generate a standard Java interface document via Javadoc */
A tag that begins with "@" is often added to the Javadoc annotation, and the parameters of the Javadoc directive can be used to produce a specific tag in the generated API document.
Java Comment Description