Kotlin - Null Safety
What will be the output of this Kotlin code?
var number: Int? = 10 number = null println(number?.plus(5) ?: "No value")
var number: Int? = 10 number = null println(number?.plus(5) ?: "No value")
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions