Originally posted by varungoyal goyal:
sir what is the use of making "public static void main " as a " private static void main
If you make any method private and static, it can only be called from within its class. One use might be a method that you don't want to be generally available, but you do want to call from another public static method.
There is nothing to stop you naming this method main. You just won't be able to use it as an entry point to your program.