0

What is the value ?

int a[]=new int[1]; system.out.println(a[0]);

31st Dec 2016, 9:01 AM
Ansar
2 Réponses
+ 2
the default value is 0
31st Dec 2016, 9:10 AM
Uran Kajtazaj
Uran Kajtazaj - avatar
+ 1
null or 0, as you didn't assign any value yet (I didn't do java, but i'm pretty sure it'd be this way)
31st Dec 2016, 9:09 AM
Dao
Dao - avatar