Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-05-2008, 10:59 AM
Member
 
Join Date: Nov 2008
Posts: 1
Rep Power: 0
shailender is on a distinguished road
Exclamation Why can't we write main without String args[]
can any one tell me why cannot we write main as

public static void main(). that is without the String args[] argument.

Tell immediately. Most Urgent..................!!!!!!!!!!
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 11-05-2008, 11:02 AM
Fubarable's Avatar
Moderator
 
Join Date: Jun 2008
Posts: 6,476
Rep Power: 8
Fubarable is on a distinguished road
Default
I was going to answer this. Seriously.

that is until I saw this part:
Quote:
Tell immediately. Most Urgent..................!!!!!!!!!!
You would be wise not to state this in your posts. Even if it is urgent to you, realize that it is not urgent to us. Many here take offense to this as it implies to them that a) the poster thinks that his post is more important than everyone else's, and b) that the poster wants to put pressure on the volunteers who come here to help on their own free time. Just a friendly word of advice.

Now hopefully someone else will help you.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 11-05-2008, 11:43 AM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 7,513
Rep Power: 11
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
Default
I agreed with you Fubarable. See my signature.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
Someone helped you? their helpful post.
Help:Forums FAQ|How To Ask Questions The Smart WayResources:The Java Tutorials|Glossary for Java|NetBeans IDE|Sun DownloadsWeb:WritOnceTips:Is your IDE the best?|Which Application Server?
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 11-05-2008, 11:56 AM
Senior Member
 
Join Date: Jun 2008
Posts: 1,397
Rep Power: 3
masijade is on a distinguished road
Default
Execution
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 11-05-2008, 11:58 AM
Fubarable's Avatar
Moderator
 
Join Date: Jun 2008
Posts: 6,476
Rep Power: 8
Fubarable is on a distinguished road
Default
yep that's the answer: because that's the way it was defined in the jls.
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to write multiline String in a JLabel JavaBean AWT / Swing 4 12-14-2009 06:09 AM
How to write a Main to test this... Zombie_Leg! New To Java 9 09-27-2008 03:30 PM
problem in args MS_Dark New To Java 13 08-27-2008 02:43 AM
[SOLVED] ReadLine(String fmt,Object... args) of Console class Pooja Deshpande New To Java 4 04-25-2008 06:51 AM
Method to write if the string object can be converted to Integer or not. Abhishek New To Java 4 03-25-2008 01:16 PM


All times are GMT +2. The time now is 09:26 PM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org