Regarding Default access modifier
Hi All,
There is a rule saying that...there must be one public class per source file and the file name must match with the class name.
What about having a class with default access level?I have a file having only one class (same as the file name) with default access level.It is working fine...
My question is...With default access, a class can be accessed inside the same package, but not from outside.Then..How come JVM is able to run that class?
What am I thinking is correct? or Am I going wrong?
Can anybody make it clear?
Thanks

