Question
Why is immutability valuable in concurrent and distributed Scala programs?
Select an option. Your answer will be checked instantly.
Correct Answer: A. Immutable values can be shared without coordination for in-place changes
Explanation:
Concurrent tasks cannot overwrite an immutable value's state.
This reduces race conditions and makes reasoning about distributed code easier.
Leave a Reply