Top Categories
6.15 Different Ways of writing main method in java | Cool Tricks
- Category:
- Sub Category:
This video will show you how to write main method in java in various ways main method in Java is an standard method which is used by JVM to start execution of any Java program. main method is referred as entry point of Java application which is true in case of core java application main method in
This video will show you how to write main method in java in various ways main method in Java is an standard method which is used by JVM to start execution of any Java program. main method is referred as entry point of Java application which is true in case of core java application main method in Java is run by main thread which is a non daemon thread and Java program runs until main method finishes or any other user thread is running. When we start JVM by running java command we also provide name of class which contains main method, which is later invoked by JVM to start Java program execution.