Kotlin - Null Safety
What will be printed by this Kotlin code?
val map: Map? = null println(map?.get("key") ?: "No value")
val map: Map? = null println(map?.get("key") ?: "No value")
map?.get("key") returns null safely.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions