Mega Code Archive

 
Categories / Java Book / 001 Language Basics
 

0069 Introduction to Arrays

A Java array is an ordered collection of primitives, object references, or other arrays. Java arrays are homogeneous: except as allowed by polymorphism, all elements of an array must be of the same type. Each variable is referenced by array name and its index. Arrays may have one or more dimensions