public class A
{
}  
public class B 
{
    public static void main(String[] args) 
    {
    }
}
Why cant we declare both class as public?
Why only Main class  can be public?
i know that by making class public ,it will allow you access in package ok ,but what if i make  
     public    class a
     { 
     }
    class B
     {
    public static void main(String[] args) 
    {
     }
  }
why this code give error do we really need to notify that main class is public bcoz every class is public
 
     
    