Kotlin - Data Types
In Kotlin, which type is used to indicate a function does not return any meaningful value?
Unit to represent functions that return no meaningful value, similar to Java's void.Nothing represents functions that never return normally (e.g., throw exceptions), Void is a Java type, and Null is a value, not a type for function returns.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions