Object Oriented Software Engineering   View all facts   Glossary   Help
subject > programming language construct > data type > Java data type > Java array
Next Java data typeJava non-primitive data type    UpJava data type    Previous Java data typeJava primitive data type   

Java array comparison table
Subject avoid have length have example manipulate compose of be contain declare by is a kind of
Java data type        data type
Java arrayif you do not a-priori know the number of items it will contain 
//the following sums all the elements of an integer array:
for(int i=0; i{
sum += anIntArray[i];
}
collections of objectsprimitive types and instances of classesan instance of a class which you can subclass or for which you can write your own codea fixed number of elementsarray declarationJava data type

Next Java data typeJava non-primitive data type    UpJava data type    Previous Java data typeJava primitive data type