🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.// comment
  2. B./* comment */
  3. C.

    comment

  4. 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 →