+ 1

Command line arguments

what are command line arguments in java

7th Jul 2017, 5:12 AM
sanju sk
sanju sk - avatar
2 Respuestas
+ 3
When you run a program from the command prompt, you can additionally supply arguments on the command line which can be later processed in the program. normally you run java program as : java prgname if you want to pass command line arguments, you run the program as : java prgname arg1 arg2 ... these arguments are passed as strings and can be accessed in main program through String args [], which is passed as a parameter in main function.
7th Jul 2017, 10:59 AM
Shahbaz Khan
Shahbaz Khan - avatar
+ 8
String [] args
7th Jul 2017, 7:11 AM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar