Hi,
Many a times in this forum this topic has been discussed. Still I am getting confused by the following :
Many guys said here that the entry point to a
java program , there has to be a public static void main(
String[]args) method. (According to JLS)
But I have following code, and its gets executed.
Whats the reason ?
Note : If we remove the static
word, then it obviously doesnt run. But why does it run even if the access specifier is private or proteced ?
Thanks in advance.
Mandar