Kotlin - Basics and JVM Runtime
Identify the error in the following Kotlin code snippet:
fun main() {
/* This is a comment
println("Hello")
}fun main() {
/* This is a comment
println("Hello")
}/* but does not have a closing */.*/, the compiler treats the rest as comment, causing syntax error.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions