‹ BACK

Unit

Unit is a subtype of scala.AnyVal. There is only one value of type Unit, (), and it is not represented by any object in the underlying runtime system. A method with return type Unit is analogous to a Java method which is declared void.
unit return type

To check your knowledge the following tests are recommended:
Check your scala scala skills.