The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
December 2000



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.


ans to u

Posted by mandar on June 30, 2001 at 9:24 AM

> can any one tell what acesses i can give to my main function and why?

hi vineet,
see my ans satisfies u , reply me back

IN most of the cases, the accesses specifiere is public, as main is the first function to be executed and rest all functions gets call from main function.

but still u can have access specifier of main funciton can be private but scope will be limited to that file class only.


Sponsored Links

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