Answer Posted / Hansraj Dwivedi
"Scala favors immutability because it leads to thread-safety, reduces the risk of unintended side effects, and makes code easier to reason about. Immutable objects cannot be modified once created, which simplifies concurrent programming and promotes a more predictable behavior in multi-threaded environments."
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers