Kotlin

How to Comment in Kotlin1 min read

As like Java, there are thee types of comments in Kotlin.

1. Single Line Comment




2. Multi Line Comment

3. Documentation Comment

The single line comment is used to comment only one line.

The multi line comment is used to comment multiple lines of code.

The documentation comment is used to create documentation API.

In the above program you can see all three comments.

Leave a Comment