Computer Science, asked by gagana912, 1 year ago

5 uses of comment line statements in Java

Answers

Answered by sp2003
2
To make a better program
To clearly depict the logic of the program
To make it easier for you to understand when you revisit it
To provide information on the data you are using in the program
So basically comment line statements are just statements which do not get executed ,so sometimes while typing the program you can hard code the errors
Answered by chaitanyakrishn1
2
1. Comments are used to provide additional information.
2. They don't alter any statements in the program.
3. They don't interfere with the output and don't influence it.
4. Comments do not cause any runtime error.
5. They help the hser to understand the program easily
6. They are beneficial in lengthy programs.

Hope it helps

Thank u ★ ★ ★
#ckc
Similar questions