|
|
| Data Types : | Let us Loon into one of the mostly used
data type in Java. Learning java will be accomplaished while having a thourough
knowledge of all the data types.
Array is a homogenous collection of a data type arranged in a ordered manner. An
array can have elements as int , long , float or even objects of any class.
Array is defined as :
int integerArray [];
we can put any data type instead of int. The array will have elements of that
datatype.
if we have defined integer array, then all the elements will have integer values
only. An important part with arrays is that array in Java start with 0. Check
out Array examples here |
|