0
[DUPLICATE] why we use (string []args)??
3 Answers
+ 2
Its simply to add command line arguments to your application
+ 1
Because main is a method and it has its own arguments which can be specified in command line executions.
+ 1
string args[] represents command line arguments..... means args is an array of type string.... nd these r the predefined parameters of main method.....that is main can take string arguments.... like we can assign
arg[0]="aman";
arg[1]="java";
we can pass ds parameters in main....method.... and use them