Kotlin - Variables and Type System
Which of the following Kotlin declarations correctly creates an immutable variable?
val to declare immutable variables that cannot be reassigned.val correctly. var name = "Alice" uses var which is mutable. The other two options use invalid syntax.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions