Question
What does the Unit type represent in Scala?
Select an option. Your answer will be checked instantly.
Correct Answer: D. The absence of a meaningful return value
Explanation:
Unit is similar to void in other languages.
Its sole value is written as ().
Leave a Reply