Groups of comments

Report a typo

Identify when to use each of the three Java comment types. Connect each comment example with its corresponding purpose.

Match the items from left and right columns
// a comment
/* a comment */
/** a comment */
For short explanations or to deactivate a single code line
For detailed notes or disabling code sections
For official code documentation using javadoc
___

Create a free account to access the full topic