|
An array object represents a fixed-sized ordered grouping of data elements of the same type. It can hold primitive values or object references as its data elements. These data elements are accessible by the index. An array is a homogeneous collection, we means it can hold only similar kind-of objects. For instance, an array of int values cannot hold strings objects. The array itself is always an object; it does not matter whether it is going to hold primitive elements or references to objects.
|
|
An array is the only built in collection in the Java
language. This built-in Java array is declared and created differently from
most of the other Java objects. It is a subclass of java.lang. |