Kotlin - Variables and Type System
Identify the error in this Kotlin code snippet:
val count: Int = 5 count = 10
val count: Int = 5 count = 10
val means the variable is read-only and cannot be reassigned after initialization.count which is declared as val, causing an error.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions