The lenght of the array is limited to the arguments used.
So if you have 3 arguments (java Program 1st 2nd 3rd) then you will not be able to access more than that (e.g. args[3] for the 4th)
To assign a new value to an existing argument is possible. But I have no idea for what reason to use that.
0
solved Command line java programming basics [closed]