Home > Java > Javagetting Started > What are the annotation methods in java

What are the annotation methods in java

王林
Release: 2019-11-12 15:21:15
Original
5995 people have browsed it

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

//内容 
//内容
Copy after login

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.

/*内容
内容
内容*/
Copy after login

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

/** 内容
*内容
*内容
*/
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template