Wednesday, December 21, 2016

Main class section in JAVA programming format

Main Class Section:

-----------------------------------------------------------------------------------------------------------------------

Main class is a JAVA class which includes main() methods.
The main intention of main() method in JAVA application is:
1. To manage application logic in java application
2. To define starting point and ending point to the application execution.

Syntax:

--------------------------------------------------------------------------------------
public static void main(String[] args) 
{

----------instruction-------

}

Note:
-------
main() method is not predefined method, it is not user defined method , main() method is a conventional method with fixed prototype and with user defined implementation and it would be executed by JVM automatically in order to start application execution.

No comments:

Post a Comment