Answer Posted / Arti Pal
Unit (written as `()`) in Scala represents a value that has no data associated with it. It is similar to void in Java and Null in other languages, but unlike those, Unit actually has a type (AnyVal).
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers