A

Admin • 833K Points
Coach

Q. Which type represents a value that never returns in Kotlin?

  • (A) Unit
  • (B) Nothing
  • (C) Null
  • (D) Void
  • Correct Answer - Option(B)
  • Views: 17
  • Filed under category Kotlin
  • Hashtags:

Explanation by: Admin

Nothing is used for functions that never return (e.g., throw exceptions).

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.