In Java, arrays are objects. Each array object has a final field named length that stores the size of the array.
Java allows arrays of length zero. Such an array is passed as an argument to the main() method when a Java program is run without any program arguments.
The  notation can be placed both before and after the variable name in an array declaration. Multidimensional arrays are created by constructing arrays that can contain references to other arrays. The expression new int will create an array of length 4, which can contain references to arrays of int values. The expression new int will create the same array, but will in addition create four more arrays, each containing ...