+ 1

What is var

10th Oct 2018, 7:35 AM
Gowri Max
Gowri Max - avatar
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;
10th Oct 2018, 7:54 AM
D_Stark
D_Stark - avatar
+ 6
A variable is a container which holds the value while the java program is executed. A variable is assigned with a datatype.
10th Oct 2018, 2:41 PM
R🍁🇮🇳
R🍁🇮🇳 - avatar