Beginner
Kotlin
Q20 / 100
What does the !! (not-null assertion) operator do?
Correct! Well done.
Incorrect.
The correct answer is A) Converts a nullable type to non-null, throwing KotlinNullPointerException if null
A
Correct Answer
Converts a nullable type to non-null, throwing KotlinNullPointerException if null
Explanation
value!! asserts the value is non-null. If it is null, a KotlinNullPointerException is thrown. Use sparingly.
Progress
20/100