Arrays in Java

Java supports an information structure, which is similar to a cluster. This information structure is called an array. It is capable of storing an altered size successive accumulation of components of the same data type. An array is utilized to store an accumulation of information, yet it is frequently more valuable to think about it as an exhibit for storing variables of the same sort.

As opposed to making declarations of individual variables, for example, num0, num1 and num99, you can declare one array variable. For example, an array of four elements is declared as arrayname[4].