Multiple choice technology programming languages

There are _____ types of Comments in Java.

  1. One

  2. Two

  3. Three

  4. Four

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

Java supports three types of comments: single-line comments using //, multi-line comments using /* /, and Javadoc documentation comments using /* */. Each serves different purposes in code documentation.

AI explanation

Java supports three comment styles: single-line (//), multi-line/traditional (/* ... */), and documentation comments (/** ... */) used by Javadoc. That's why 'Three' is correct.