Beginner
Kotlin
Q14 / 100
Which keyword is used for type casting in Kotlin?
Correct! Well done.
Incorrect.
The correct answer is B) variable as Type
B
Correct Answer
variable as Type
Explanation
Kotlin uses as for unsafe casting and as? for safe casting (returns null instead of throwing on failure).
Progress
14/100