GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  J2EE  >  Core Java

 Print  |  
Question:  Supplying Arguments to Main Method

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


December 12, 2008 06:06:36 #1
 dugulam   Member Since: April 2007    Total Comments: 1 

RE: Supplying Arguments to Main Method
 
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
     

 

Back To Question