Understanding Array

ยท

1 min read

Array

An array in computer programing, is a collection of items of same data type stored at contiguous memory locations (i.e. their order is from 0-nth).

This makes it easier to calculate the position of each element by simply adding an offset to a base value, i.e., the memory location of the first element of the array (generally denoted by the name of the array)

const iNeuron = ["Effective", "1", "Hardwork", "focus","true"];

From the above example we can say the following point about java.

  • The array can store data types like Integer, Float, String, and Boolean all the primitive data types can be stored in an array
  • The data inside an array is known as Elements
  • Any variable having inside square bracket [] is array.
  • More than values can be stored in one variables.
  • Arrays consist of strings, numbers, booleans, objects, or even other arrays.

linkedin twitter

#iwritecode

ย