Multiple choice technology programming languages

Which of the option correctly describes the comments in java 1) // -- single line comment 2) /* -- / multiple line comment 3) /* -- */ documentation

  1. 1,2

  2. 2,3

  3. 3,1

  4. 1,2,3

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

Java supports three comment types. Single-line comments use //, multi-line comments use /* /, and documentation comments (Javadoc) use /* */. The documentation comment style is a special variant of multi-line comments that can be processed by Javadoc to generate API documentation. All three styles are valid. Option D is correct.