This page topics close

An array is a collection of variables of the same type that are referenced by a common name.

  • Important Point

    • An Array is an Indexed Collection of a fixed number of homogenous data element having the same name.

    • The main advantage of an array is we can represent multiple values under the same name. So that readability of the code is proved.

    • The first element of the array is stored at 0 index.

    • fig:

      566350044.jpg
  • Types of Array in java

    There are two types of array.

    • Single Dimensional Array : comprised of finite homogeneous elements.

    • Multidimensional Array : comprised of elements , each of which is itself an array. A 2-D array is the simplest of multidimensional arrays.

What next?

Share this page