What is the purpose of command-line arguments to a Java program? How can they be used?

What will be an ideal response?


Command-line arguments are passed to the main method when execution commences. They can be used to
provide input to a program in a non-interactive way. They are passed as an array of Strings. Individual arguments can be
accessed using array subscript notation.

Computer Science & Information Technology

You might also like to view...

MC GTK is an acronym for__________ .

a) Good Tool Kit. b) Graphical Tool Kit. c) Gimp Tool Kit. d) None of the above.

Computer Science & Information Technology

Double-clicking a RadioButton in design view will generate a(n) ________ event.

a) Change b) SelectedIndexChanged c) CheckedChanged d) Click e) TextChanged

Computer Science & Information Technology

Round the following values up at the places noted.

77.1 at tens place

Computer Science & Information Technology

A custom Slide Show is created by using slides from an existing presentation

Indicate whether the statement is true or false

Computer Science & Information Technology