Subscribe our newsletter
Search
Close this search box.

Kotlin Comments

Latest posts
Get notified of the Latest Sport News Update from Our Blog
Share

Comments are ignored by the kotlin compiler. comment is a programmer readable explanation about source code that makes source code easier to understand by programmers.

Single-line Comments : Kotlin comments starts with two forward slashes // and end with end of the line

// This is a comment
// Hello World Program
fun main() {
    println("Hello World ")
}

Multi-line comments : start with /* and ends with */.

/**
 * This is a multi-line comment.
 *
 */

fun main() {
    println("Hello World ")
}

Related blogs

Nullam quis risus eget urna mollis ornare vel eu leo. Aenean lacinia bibendum nulla sed 

Subscribe for coding tips and tutorials!