+ 1
What is var
2 Réponses
+ 8
Its a data type keyword for declaring local variables, before the update you used String and int keywords but now you can use var for both
var str = "im a string";
var num = 22;
+ 6
A variable is a container which holds the value while the java program is executed. A variable is assigned with a datatype.