Who passed the "args" to the main method?
<p>I tried to run a small c# and java program (using VS and NetBeans not from the command line) and print the value of the args[0] but I got an <code>IndexOutOfRangeException</code>.<br/>
I know that the <code>args</code> is for passing in command line parameters but it is <strong>still</strong> in the main method any way, So how the program will run if there is no <code>args</code> parameter passed to it ?</p>
