What is Java Main Method

What is main method?
It is a default signature which is pre-define configured into JVM. This method is call by JVM to execute a program line by line and end the execution after completion of this method.

Why need main method?
To execute a program, JVM is always searching for the main method to start executing the program. If main method is not there in a program then JVM throws error.

Why it is always:?
public static void main(String[] args) {


Facebook :…

Related Posts

Leave a Reply

Your email address will not be published.

© 2022 Code As Pro - Theme by WPEnjoy · Powered by WordPress