ObjectiveMcq
Print Protected
This page is protected for print. Use the website to view the content.
What does the Elvis operator (?:) do in Kotlin?
Correct Answer: D — Provides a default value if the left-hand expression is null
The Elvis operator (?:) provides a default value when the left-hand expression evaluates to null, e.g., val result = value ?: "Default".