An array is a collection of the same type of elements that are grouped together and referred to by a common name. These elements are homogeneous in nature meaning they should be of the same datatype.