In this article,Possible Array Declarations and 2-D Arrays are explained in detail with examples.
In java we can declare an one dimensional arrays in possible ways.
int a[];
int []a;
int...a; //used only as varargs in methods
// as last parameter.
Command line arguments
The main method takes string arrays as the input parameter.Such parameters could be passed as arguments while executing the Java program.
Syntax