How array memory allocation is managed in
Java?
In the sense, I have a Object two dimensional array initialized with say obeject[10][10].
How much will be memory allocated for this initialization.
The reason is in the array initialized, my program is going to insert Object instance into some of the array indexes. That means some of the array indexes will be null/empty. How expensive are those empty/null arrays?
Thanks in advance,
-Ajay