Arrays are important static data structures that are used to store information in one place.
To create an array you need the data type, eg int, String, object, a variable name, and a size. Because arrays are static, once you create an array you cannot change the size.
Arrays are accessed through their indices. In Java (unlike languages like Fortran), indexing starts at 0. The first element is accessed through name, the second through name and so on.
If the array has not been specifically set to a value, it will default to 0 for integers and null for objects. From the previous code segment, the array name would look like this: [0,0,0,0].
Arrays have a feature called length, which will give you the size of the array.
These structures are important for storing multiple values in a single variable. There are no issues with memory shortage or overflow because it is static. This is also a drawback as you cannot change the size of the array.