943,779 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 32997
  • Java RSS
You are currently viewing page 3 of this multi-page discussion thread; Jump to the first page
Aug 3rd, 2006
0

Re: Why is the main method static?

i wanna be a good java developer
Reputation Points: 10
Solved Threads: 0
Newbie Poster
dragony2000 is offline Offline
1 posts
since Aug 2006
Aug 3rd, 2006
0

Re: Why is the main method static?

Quote originally posted by dragony2000 ...
i wanna be a good java developer
Join the club. I've been programming for 8 years now and I still want to move from beginner to good.
Reputation Points: 11
Solved Threads: 8
Posting Whiz in Training
hooknc is offline Offline
216 posts
since Aug 2005
Aug 4th, 2006
0

Re: Why is the main method static?

Quote originally posted by hooknc ...
Join the club. I've been programming for 8 years now and I still want to move from beginner to good.
The first step in that process you've already made, realising you have things to learn
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004
Mar 29th, 2007
0

Re: Why is the main method static?

Along similar lines, whhy is main method in Java required to be declared as "void" ?
Reputation Points: 9
Solved Threads: 0
Newbie Poster
madhav_2k is offline Offline
5 posts
since Apr 2006
Sep 21st, 2011
-1
Re: Why is the main method static?
main method is static because ,
when loader loads a class file into command promot and jvm search the main method and it found static so we can called that class withod creating an object from the instance of the class.

and also jvm gets main() then objet instantiated there is accessed.
Reputation Points: 10
Solved Threads: 1
Newbie Poster
minded is offline Offline
3 posts
since Sep 2011
Sep 21st, 2011
1
Re: Why is the main method static?
This is 6 years old thread!
Reputation Points: 229
Solved Threads: 238
Posting Virtuoso
Taywin is offline Offline
1,723 posts
since Apr 2010

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: printing my jtable
Next Thread in Java Forum Timeline: Please help me to understand how jtable and model works





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC