Kotlin - Null Safety
Identify the error in this Kotlin code snippet using the Elvis operator:
val input: String? = null val output = input ? "Default"
val input: String? = null val output = input ? "Default"
? instead of the Elvis operator ?:.?: to provide a default value when the left side is null.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions