Supplying Arguments to Main Method

What is the meaning of supplying string[] args to main method?

Questions by murali_06

Showing Answers 1 - 3 of 3 Answers

dugulam

  • Dec 6th, 2008
 

public static void main(String args[])
This array of Strings is the mechanism through which the runtime system passes information to your application. Each String in the array is called a command line argument. Command line arguments let users affect the operation of the application without recompiling it. For example, a sorting program might allow the user to specify that the data be sorted in descending order with this command line argument:
-descending

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions