Question #307097

Command line argument in java programming

Expert's answer

A command line argument is information that is given on the command line of its specific name during program startup. The available command line arguments inside a Java program are straightforward — they are present as strings in the String array passed to the main() method.


For example:

public class Main {
    public static void main(String[] args) {
        
    }
}


Where "args" is the String array.


LATEST TUTORIALS
APPROVED BY CLIENTS