A
abhishek.raju
Hi All ,
I have the following query :-
If I define the main method as a Private , then run the demo program
the program obviously doesnt run ,we have a runtime error .What
exactly is the reason behind it .
I know its not a good programming practice and the main should always
be in Public.
But I want a conceptual answer as to why its not a valid thing to make
the main as Private.
Any help would be highly appreciated .
Regards,
Abhishek.
I have the following query :-
If I define the main method as a Private , then run the demo program
the program obviously doesnt run ,we have a runtime error .What
exactly is the reason behind it .
I know its not a good programming practice and the main should always
be in Public.
But I want a conceptual answer as to why its not a valid thing to make
the main as Private.
Any help would be highly appreciated .
Regards,
Abhishek.