ObjectiveMcq
Print Protected
This page is protected for print. Use the website to view the content.
What is the default return type of a Kotlin function that does not return anything?
Correct Answer: B — Unit
In Kotlin, functions that do not explicitly return a value have a default return type of Unit, which is similar to void in Java but is a real type in Kotlin.