Answer Posted / Manjoor Ahmad
Val is a value that cannot be reassigned once it has been initialized, while Var is a mutable variable that can be reassigned. Val is used for constants or immutable values, while Var is used for variables that may change during the course of a program.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers