They aren't actually multipdimensional arrays, but array of arrays. Because you gave each of your included arrays a size they aren't null. What you now have is more like this:-If you want each of the elements to be null, you can probably say new Foo
You are correct. Technically Java does not have multi-dimensional arrays, it has arrays of arrays, where each subarray could be a different length or even a null place holder for a subarray.
Now you have an array that holds 5 arrays (as not yet constructed, initially nulls), where each subarray would be a String of any length.
Then you can have:
FIX your bracket placement or the Java Syntax Conventions Police will get you.
Typically, if you have arrays-of-arrays declared in your code, then you will have a nested loop to traverse them. This is where you need to be careful in your loop constructs to allow for varying lengths of arrays.
If you mean can you get the same result in one stage or two stages like that, then you are correct. If you had a true multidimenstional array, you would not get such code to compile,, because the included arrays would be contrainsed to be the same size (2).