ICSE Class 10 Computer Applications Question 21 of 25

Values and Data Types — Question 21

Back to all questions
21
Question

Question 21

How can you write single line comments in Java?

Answer

Single line comments in Java can be written using //. For example:

// This is an example of single line comment.