0

In JAVA data type var, is it save any default value?

When we declaire variable as in global as a static in JAVA so it definitely save default value. So my question is that the data type var is save in value as a default?

28th Apr 2020, 3:52 AM
I.S. Patil
I.S. Patil - avatar
2 Respostas
0
Yes var has its default value. Integral data type: Value--> 0; Floating data type: Value--> 0.0; Boolean data type: Value--> false; String data type: Value --> null;
28th Apr 2020, 4:16 AM
Aniket Singh Rana
Aniket Singh Rana - avatar
0
What is default value of var?... please mention it.
28th Apr 2020, 5:27 AM
I.S. Patil
I.S. Patil - avatar