This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

why we pass String array in main method

 
Arun Maalik
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1249
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Cob is sand, clay and sometimes straw. This tiny ad is made of cob:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!