The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
January 2001

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:

Reflection

Posted by Kishori Sharan on January 30, 2001 at 3:26 PM

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



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us