Java language is an object-oriented programming language, the basic component of Java program is a class, the class body can also include attributes and methods two parts. Each application must contain a main () method, and the class containing the main () method is called the main class. When a program needs to be executed, the file name (and the main class name) of the main class is entered after the Java command, so the main class file is the first user file to be loaded into the virtual machine after the Java runtime is established, such as:
The main class name (filename) is Hello.java, where each parameter has the following meanings:
Main: The entry method name.
Args: A command-line argument, which is an array of string objects.
Static: Modifier word, stating that main () is a static method (class method).
Public: The modifier word, which indicates that main () has publicly accessed properties.
1.public static void Main (string[] args) The entry method of the//java program, where the program will begin execution
2.system.out.println ("helloworld!"); /print a statement to the console
An interpretation of a Java program