JAVA annotations

A close up of a window with a curtain in the background


1.1 Comment Overview

Comments are descriptive information added at a specified location in the program

Comments do not participate in program execution, but only serve as instructions

1.2 Comment Classification

Single-line comments:

Format: //Comment information

Multi-line comments

Format: `/*Comment information*/`

Document comments

Format: /**Comment information*/

Document comments are not currently used, so they will not be explained for now.

1.3 Notes

Note: Multi-line comments cannot be nested.

Comment