I want to know what is the significance of public access modifier with main (
String args[]) method. Like generally we write
public static void main(String args[])
{
}
But if we write
private static void main(String args[])
{
}
OR
protected static void main(String args[])
{
}
then also its working properly.............
then what is the use of public keyword..........................
Regards
Ajay Pratap Singh