Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
JVM uses reflection to call main method. In JDk1.2 there was a bug which allowed you to use private modifier for main method. Instead, of fixing it Sun has decided to go with it and they have included it in JVM specification 5.2. So, now you don't have to make you main method public.
Replies:
|
Sponsored Links
|