It's not a secret anymore!*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes why we pass String array in main method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "why we pass String array in main method" Watch "why we pass String array in main method" New topic
Author

why we pass String array in main method

Arun Maalik
Ranch Hand

Joined: Oct 25, 2005
Posts: 216
Dear sir i would like to know one thing that in java main method why we pass String array like

public static void main(String[] args){}

Here why we pass String array as a argument in main method() please tell me.

with regard

Arun kumar maalik
Shaan Shar
Ranch Hand

Joined: Dec 27, 2005
Posts: 1249

Originally posted by Arun Maalik:
Dear sir i would like to know one thing that in java main method why we pass String array like

public static void main(String[] args){}

Here why we pass String array as a argument in main method() please tell me.

with regard

Arun kumar maalik


Although it's depends upon completely on Designer of JAVA.

But you must check out this Why main() method in JAVA

Hope this must helps you out...


The Best way to predict your future is to create it - Every great individual common man
 
GeeCON Prague 2014
 
subject: why we pass String array in main method