val and var are two ways of declaring variables in Scala. val is immutable means it cannot be changed once declared.
var is mutable means it can be changed at a later point of time in the program .
A technology and programming blog to share knowledge and solutions to problems came across
Comments
Post a Comment