Wednesday, April 18, 2007

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.



Interview Questions On Java,Java EE Copyright © 2017. Reads: best tracker