java , a Java array of size 0 can be created but it will be of no use because it cannot contain anything. ... length that returns the total size, zero of course, of emptyArray . Every array type has a public and final field length that returns the size of array or the number of elements an array can store.