Introduction to Array - The Coding Shala
Home >> Data Structures >> Introduction to Array
Introduction to Array
An Array is a data structure used to store a collection of elements sequentially. we store elements of the same type in an array for example elements can be int, char or String, etc. We can access elements in array randomly or by index.
The weakness of array is array must be implemented in contiguous memory.
NOTE: The index of an array starts with zero(0).
Arrays are two types:
- One-dimensional array(liner array)
- Multi-dimensional array
To know more about Arrays in Java Java Arrays.
Other Posts You May Like