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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | fun main(args : Array<String>) { //This is single line comment /* This is multi line comment */ /** This is documentation comment */ println("Kotlin - Hello World ") |