Kotlin - Variables and Type System
What will happen when you run this Kotlin code?
val message = "Hello" message = "World" println(message)
val message = "Hello" message = "World" println(message)
val cannot be reassigned after initialization.message causes a compilation error.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions