An Array is an crucial and most used data structure in Java programming language. It is one of the frequently used data structure by programmers due to its efficient and productive nature. The Array is a collection of same data type elements. It uses a contiguous memory location to store the elements.
A String Array is an Array of a fixed number of String values. A String is a sequence of characters. Generally, a string is an immutable object, which means the value of the string can not be changed. The String Array works similarly to other data types of Array.
In Array, only a fixed set of elements can be stored. It is an index-based data structure, which starts from the 0th position. The first element will take place in Index 0, and the 2nd element will take place in Index 1, and so on.
The main method in Java is also an String Array.{Public static void main[ String [] args]; }
0 Comments