Beginner
Kotlin
Q16 / 100
What does the when expression replace in Kotlin?
Correct! Well done.
Incorrect.
The correct answer is C) The switch statement from Java
C
Correct Answer
The switch statement from Java
Explanation
when replaces Java's switch and is more powerful — it can match ranges, types, and expressions, and can be used as a statement or expression.
Progress
16/100