The main() method in a Java application
The main() method is the entry point of a standard Java application. The JVM uses the main() method to execute a Java program. Typically, we would write the complete code for the main() method as follows:
|
1 2 3 4 5 6 7 8 |
package com.huongdanjava.java; public class Application { public static void main(String[] args) { } } |
The keyword public is an access modifier, meaning… Read More
