Command Line Argument is a method to supply some input to Java Program while running.
In various cases program required some input to start execution. Such inputs can be given to program using command line arguments and it can be read in main(String[] args) method's argument "args". Command line arguments can be multiple as its received in "args" array.
/**
Command Line Example
*/
class TestCommandLineArg{
public static void main(String[] args){
System.out.println("Length of args : "+args.length);
for(String e : args){
System.out.println(e);
}
}
}