Header Ads

  • Breaking Now

    What are the command line arguments?

    Whenever a java file is executed it is done by java command given as below: java Usage: java [-options] class [args...]
    (to execute a class)
    or java -jar [-options] jarfile [args...]
    (to execute a jar file)
    when some arguments are also passed with execution command then these arguments are called command line arguments as they are taken as an array of String as a parameter in main method.

    Post Top Ad

    Post Bottom Ad