I created a class with package modifier in eclipse.
class notPublic
{
//main() which prints a string
}
I ran this program and it was printed that string. I have a small doubt here
I read that Java compilation unit must have a public class I have a compilation unit which doesn't have public class. But It works.
What did I understand wrongly here