Novice Java Tutorial with Apache NetBeans 11.0: 6 Comments

Опубликовано: 01 Март 2026
на канале: Bruce Lamb
136
1

Discuss 2 ways to use comments to take notes with in are java files.
To copy and paste code visit: www.carbon12.life/Tutorials/Novice_Java/6_Comments.php
Line comment: //
Block comment /* ... */

Explain the line comment. (0:20)
A line comment will ignore anything past the "//" consecutive characters on the same line.

Move the line comment on the same line as the processed program statement. (0:32)

Explain the comment block. (1:45)
anything between /* and */ will be ignored by the compiler.

Demonstrate the possible error with the comment block. (2:15)

Explain how to quickly comment using Apache Netbeans 11.0
Holding down the key "Ctrl" and press the "/" forward slash key will comment the selected line of code automatically by adding //.
If multiple lines are selected then multiple lines will be commented out.