Kotlin - Null Safety
Consider this Kotlin code:
val list: MutableList = mutableListOf("a", "b", "c")
list.add(null)
println(list.size)
What happens when you run it?
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions