Unit value in Scala is –

91. Unit value in Scala is -

  1. Used as a return statement when no value is returned to it.
  2. The function automatically returns a unit value when no value is returned.
  3. Returned using Unit keyword
  4. All of these

Answer: D) All of these

Explanation:

Read more: How to return the Unit from a Scala function?

Comments and Discussions!

Load comments ↻






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