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.
Get the Bright Tutorials app Stuck on a question? Ask Bright Buddy — your AI tutor — for step-by-step help in the app.