Answer Posted / Nutan Yadav
In Scala, a `var` is a mutable variable, meaning its value can be changed during runtime. A `value`, on the other hand, is an immutable variable whose value cannot change once it's assigned. In general, use `val` for constants and `var` for variables that require modification.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers