Home »
MCQs »
Scala MCQs
Unit value in Scala is –
91. Unit value in Scala is -
- Used as a return statement when no value is returned to it.
- The function automatically returns a unit value when no value is returned.
- Returned using Unit keyword
- All of these
Answer: D) All of these
Explanation:
Read more: How to return the Unit from a Scala function?