Computers
Go to...
Index
Translations
Pronunciation
Images
Computers
Geography
Languages
0 / 60 seg.
Which data type does Scala use instead of null for optional values?
O
P
T
_
_
N
Clue
Collection
In Scala, the Option data type is used instead of null for optional values. It is a container that can either hold a value or be empty, and it is used to represent the presence or absence of a value. This makes it safer to work with than using null, as it eliminates the risk of null pointer exceptions.
Nil
Option
Singleton
Previous question
Start
Next question
Please enable JavaScript to continue using this application.