Multiple choice

Which command will compile a comment?

  1. /* -------- */

  2. * -------- *\

  3. ^----^/

  4. ;)

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

While compilers actually ignore comments rather than compiling them, the question asks for the correct syntax of a comment block. The syntax /* -------- */ is the standard multi-line comment format in Java.