This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Java has to call the main method to start your program. If main were not static, java would have to first create an extra instance of the class that contains main. If that class lacks a no-arg constructor, java would have no way to do that.
Keeping main static avoids this complication.
SCJP 1.4, SCWCD in process
Joined: Mar 25, 2005
thanx a lot!!! ... thats really helped me in clearing stuff !!! thanxa lot adios!!! and may god bless u ppl !!!