0

[DUPLICATE] why we use (string []args)??

25th Jul 2016, 8:28 AM
sheikh sameen
sheikh sameen - avatar
3 Answers
+ 2
Its simply to add command line arguments to your application
25th Jul 2016, 9:22 AM
mounika
+ 1
Because main is a method and it has its own arguments which can be specified in command line executions.
25th Jul 2016, 3:20 PM
Valentino Picone
Valentino Picone - avatar
+ 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
15th Aug 2016, 3:18 AM
Amandeep Singh
Amandeep Singh - avatar