Tsallaka zuwa abun ciki
Justice Tech School

Comments

// starts a single line comment and /* ... */ spans several lines. /** ... */ is a documentation comment used by the javadoc tool.

Example
// a single line comment
System.out.println("visible"); // trailing comment
/* a comment
   over several lines */
System.out.println("also visible");

Result

visible
also visible

Exercise

Start a single line comment.

 this is ignored

Quiz Test

Which is a multi-line comment?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.