← Quiz: Java Introduction: all 10 questions
Quiz: Java Introduction · Question 10 of 10
Which kind of comment is read by the javadoc tool to create documentation?
Which kind of comment is read by the javadoc tool to create documentation?
- A.// comment
- B./* comment */
- C.
comment
- D./** comment */
Answer & explanation
Correct answer: /** comment */
Comments starting with /** are documentation comments; the other two are ignored by javadoc. # is not a Java comment.
Can you get the rest right without peeking?
Take the timed Quiz: Java Introduction quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →