This is all about Command Line Argument
Command Line Argument:
Command Line Argument is information passed to the program when you run the program. The passed information is stored as a string array in the main method. Later, you can use the command line arguments in your program.So, it provides a convenient way to check the behavior of the program for the different values. You can pass N (1,2,3 and so on) numbers of arguments from the command prompt.
Command Line Arguments in Java: Important Points
1. Command Line Arguments can be used to specify configuration information while launching your application.
2. There is no restriction on the number of java command line arguments. You can specify any number of arguments
3. Information is passed as Strings.
4. They are captured into the String args of your main method
Command Line Argument In Java.
Теги
command line argumentcommand line arguments in java in hindijava command line argumentwhy command line argument in javacommand line argument string argshow to run java program from cmd in hindiarray of string object javahow to run a java program in hindihow to run java program in notepadhow to run java programhow to run java program in cmdhow to run java program in command prompthow to run java program injavacommand line arguments in javacommand line