Home  >  Article  >  Java  >  What are the annotation methods in java

What are the annotation methods in java

王林
王林Original
2019-11-12 15:21:155913browse

What are the annotation methods in java

1. Comment a line (the shortcut key in eclipse is: crtl /). Press the shortcut key once to comment, and press it again to uncomment

//内容 
//内容

What are the annotation methods in java

2. Comment multiple lines and block comments (the shortcut key in eclipse is: crtl shift /). Press the shortcut key once to comment, and press it again to cancel the comment. It can only be deleted manually.

/*内容
内容
内容*/

What are the annotation methods in java

3. Document comments (the shortcut key in eclipse is: /** enter). Click the shortcut key to comment. Only this comment method can be written into the javadoc document

/** 内容
*内容
*内容
*/

What are the annotation methods in java

Note:

The comment content is not edited, it is just an explanation Note;

Comment, for easier reading;

For each single-line comment or multi-line comment, you must select the content to be commented.

Recommended tutorial: Java tutorial

The above is the detailed content of What are the annotation methods in java. For more information, please follow other related articles on the PHP Chinese website!

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