I never really thought about the args array in the main method until now and it struck me that it must be auto intiialised in size based on the number of arguments you pass to the command line. i.e. 3 arguments passed and the args array is created with 3 elements and its size is 3. Is this a correct assumption?
Also, if no arguments are passed, how come a test on this args arry being null returns false?
I'm aware that all arrays have their element intiailsed to the defaults of the type e.g. 0 for int, howver, if no arguments are passed then is the args array not just a null array with no elements? Can someone shed some light or point me in the direction of more information on this 'special' case?