Object Oriented Software Engineering   View all facts   Glossary   Help
subject > programming language construct > data type > Java data type
Updata type

Java data type comparison table
Subject avoid have length have example manipulate compose of be use instead of has part contain declare by have name
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 code Java data type namea fixed number of elementsarray declaration 
Java non-primitive data type       Java data type name  starting with a capital letter
Java primitive data type      wrapper class instances for arithmeticJava primitive data type name   

Updata type