Arrays in Java

An array is an object which stores values either of reference types or primitive types. One can think of an array as storage of a list of items of the same type. There is no limitation to how many elements an array can contain except for the computer memory.
An array is zero based, meaning that the first element in the array has index zero, the second element has index one and so on. An array gets its size at declaration time and unlike Collection objects (which are dealt with in another section) this size cannot be altered once it’s set.
The normal array is just a one dimensional array but it can be two-dimensional or even three-dimensional.

Read more about arrays on other pages in the Arrays-section.

Search for more Java info on this site here:
Custom Search

Any thoughts or questions?