Kotlin - Variables and Type System
Which of the following is the correct syntax for explicit type declaration of a variable in Kotlin?
val or var followed by variable name, colon, type, then assignment.var age: Int = 25. Others have syntax errors.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions