I am a new person to Java. Why we are using static in the main function.Is it necessary,if so why.If not why...
posted 16 years ago
Defining a function as static means the function can execute without an instance of the class being created. This is why main is declared as static. It is where execution of a program begins, and it should execute even if no instances of the class are created.
Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley