Home »
MCQs »
Scala MCQs
Statement returned by function when no values are returned in Scala –
19. Statement returned by function when no values are returned in Scala -
- No value
- Unit
- Int
- None of these
Answer: B) Unit
Explanation:
Statement returned by function when no values are returned in Scala is Unit.