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
subjectfact 
Java arraycan be composed of primitive types and instances of classeslink: chapter2section2.8.html#798, 2001-08-30 14:56:08.0
contains a fixed number of elements2001-08-30 14:56:08.0
has example
//the following sums all the elements of an integer array:
for(int i=0; i{
sum += anIntArray[i];
}
link: chapter2section2.8.html#803, 2001-08-30 14:56:08.0
has lengthlink: chapter2section2.8.html#802, 2001-08-30 14:56:08.0
is more efficient than specialized collection classeslink: chapter2section2.8.html#808, 2001-08-30 14:56:08.0
is object-like but is not a true instance of a classlink: chapter2section2.8.html#800, 2001-08-30 14:56:08.0
is zero-based which means the first element is element 0link: chapter2section2.8.html#810, 2001-08-30 14:56:08.0
is a subtopic of The Basics of Java2001-08-30 14:56:08.0
is declared by array declarationlink: chapter2section2.8.html#795, 2001-08-30 14:56:08.0
is not an instance of a class which you can subclass or for which you can write your own codelink: chapter2section2.8.html#800, 2001-08-30 14:56:08.0
is a kind of Java data type2001-08-30 14:56:08.0
should be avoided if you do not a-priori know the number of items it will containlink: chapter2section2.8.html#805, 2001-08-30 14:56:08.0
should not be used to manipulate collections of objectslink: chapter2section2.8.html#807, 2001-08-30 14:56:08.0
Java data typehas part Java data type name2001-08-30 14:56:12.0
data abstractiongroups the pieces of data that describe some entity, so that programmers can manipulate that data as a unit2001-08-30 14:55:09.0
helps a programmer to cope with the complexity of data2001-08-30 14:55:09.0
hides the details of data2001-08-30 14:55:09.0

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