0
Why does the main method take (string[] args) as an argument by default?
2 Réponses
+ 2
this is for the parameters passed to the program by. operating system, by command line or by shortcut. args[0] is the name of the executable file name (the program you've written), args[1] is the first argument passed to the program.
0
If I am correct now, the compiler looks for the method main with the parameters (string[] args).