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 ")
}
Kotlin Comments
reading addict
Latest posts
Future in Flutter
Kotlin Standard Delegates
Kotlin Delegation
Kotlin Null Safety
Get notified of the Latest Sport News Update from Our Blog
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
Multi-line comments : start with /* and ends with */.
Sanjay Prajapat
Related blogs
Kotlin Delegation
Kotlin Null Safety
Sealed Interface