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 !!!