Java – Comments

Comments are used to annotate code for clarity. Single-line comments use “//”, and multi-line comments use “/*…*/”.
Example:

// This is a single-line comment

/* This is a multi-line comment */

No images available.