Question
Which Scala keyword declares an immutable reference?
Select an option. Your answer will be checked instantly.
Correct Answer: D. val
Explanation:
A val can be assigned only once.
The referenced object's internal state may still be mutable depending on its type.
Leave a Reply