Beginner Kotlin
Q17 / 100

What is the Unit type in Kotlin?

Correct! Well done.

Incorrect.

The correct answer is A) An alias for void in Kotlin

A

Correct Answer

An alias for void in Kotlin

Explanation

Unit corresponds to Java's void. Functions that return nothing return Unit, which can be omitted from the function signature.

Progress
17/100