Kotlin Tutorial
Kotlin Comments (All Types With Examples)
Table of Contents
- Introduction
- What Are Comments in Kotlin?
- Types of Kotlin Comments
- Kotlin Nested Comments
- Kotlin Documentation Comments (KDoc):
- How to Use Kotlin Comments?
- Keywords in Kotlin
- Kotlin Full Course Video for Beginners [FREE]
Kotlin Full Course Video for Beginners [FREE]
Kotlin Comments FAQs
No, single-line comments have no such limit. The comments can be extended till the end of the line.
Whenever you write a comment, select the code block you want to comment out and press CTRL+/. This will comment out the select part with single-line comments.
Comments don’t affect the performance of a Kotlin program because the compiler ignores comments.