Statement returned by function when no values are returned in Scala –

19. Statement returned by function when no values are returned in Scala -

  1. No value
  2. Unit
  3. Int
  4. None of these

Answer: B) Unit

Explanation:

Statement returned by function when no values are returned in Scala is Unit.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.