What is unit in scala?
Answer / 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 |
What do you understand by an implicit parameter in scala ?
What is the difference between Function and Method in Scala?
What is call-by-name? Does Scala and Java support call-by-name? What is the difference between call-by-value and call-by-name function parameters?
What is string interpolation in scala?
Explain the functionality of yield?
What is flatmap in scala?
What is seq in scala collection?
What is final in scala?
What is an array in scala?
How to define Factory methods using object keyword in Scala? What is the use of defining Factory methods in object?
What is an abstract class in scala?
Explain the difference between array and list in scala?