Comments
Last updated
What is Comments?
Comments are explanatory notes added to code to make it easier to understand. In Kotlin, you can add single-line comments using //. Anything after // on the same line is ignored by the compiler. For multi-line comments, you can use /* to begin the comment and */ to end it. Everything between /* and */ will be treated as a comment and not executed as code.
Free resources to learn Comments
- Official docsComments
More in stage 6: Comments
Comments: common questions
Can I learn Comments in Hindi?
This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain Comments in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.
Is this Comments tutorial for beginners?
It is lesson 13 of 153 in the free Kotlin roadmap, in stage 6, Comments. If you are new to Kotlin, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.