Wednesday, 7 September 2016

public static void main(String[] args)

Implements of main() method In JAVA:-
The main() intention of main() method in java applications.
1.       To manage application logic in java application.
2.       To declare starting point and ending point to the application execution.
Syntax:-
public static void main(String[] args)
{
        ---instructions---
}
Note:-
Main() method is not Pre-defined method. It is not user defined method, main() method is conventional method with fixed prototype and with user defined implementation. When we provide then JVM will load main class byte code to the memory and JVM will execute the main() method directly by using main class in order to execute application logic.

No comments:

Post a Comment