You're using array initializers to construct the array, so the length of the array will be given by the data you provide.
The first example declares an array with a length of zero as you don't provide any elements. I.e. it cannot contain any elements.
The second example declares an array of length one.