Multiple choice

Which is a comment?

  1. //I am a comment

  2. class iAmaComment

  3. for (I am a Comment)

  4. int iAmaComment = (a < 0) ? -a : a;

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In Java, double forward slashes (//) are used to denote a single-line comment. The other options represent class declarations, loop headers, or variable assignments.