visiblility of a class
Hi ,i have a public static void main(String[] args){}And the class contaning this method has default visibility , then how is it that my code gets executed . How is the code acessible from outsideregards,ivin
[257 byte] By [
ivinjacoba] at [2007-11-27 5:40:30]

i have clear idea of decalring variables and methods as private,protected ,default and publicbut i am not getting the idea of declaring the class as default and public since .in anycase the class is accessible by the interpretor also
the above url says
"A class may be declared with the modifier public, in which case that class is visible to all classes everywhere. If a class has no modifier (the default, also known as package-private), it is visible only within its own package (packages are named groups of related classes梱ou will learn about them in a later lesson.) "
Does that mean java interpretor is in my userdefined package
:)
plz reply