Java – Variable
Java variables are piece of memory that can store data values. A variable is assigned with a data type.
Java variables are piece of memory that can store data values. A variable is assigned with a data type.
Variables are reserved memory locations to store values.In Scala variables are created using var and val keywords. var keyword creates mutable variable and val creates immutable variable.