public class CommandArgsThree
{
public static void main(String [] args)
{
String [][] argCopy = new String[2][2];
int x;
argCopy[0] = args;
x = argCopy[0].length;
for (int y = 0; y < x; y++)
{
System.out.print(" " + argCopy[0][y]);
}
}
}
and the command-line invocation is: java CommandArgsThree 1 2 3
1.what is the difference between the above command and this: java CommandArgsThree 123,what is the args type and its behavior regarding the different inputs.
String [][] argCopy = new String[2][2];
2.does the above statement creates an two dimensional array of strings i.e it
null null
null null
as this can be accessed by argCopy[0][0],argCopy[0][1] or
{null,null,null,null}
as this can be accessed by argCopy[0],argCopy[1],argCopy[2],,,,.