java

Array in Java

Array in Java is the collection of similar type data values. In java, array treat as an object. To declare an array, define the variable type with square brackets. Variables in the array are order, and each has an index beginning from 0. The size of an array must be specified by int or short value and not long value.