I made the following array:
int[] array = new int[9];
This array is initialized, but empty.
In that case, what is the value of any index of this array?
When I print it out, it gives me 0.
Does that mean there is a zero stored in here (like if you had called int x = 0
)?
Or is it null
?
Also, is this the same for any Object
array?
Is it an empty instance of this object, or is it null
?