The word understanding of the first sentence of java

public class HelloWorld {

public static void main(String[] args) {
    System.out.println("人生中的第一个代码-----");

}

}

The first line position of the keyword file of the package package is
com.zhiyou100 package name
; the end of the mark statement is
com.zhiyou100 com. The zhiyou100 package indicates that the current class HelloWorld is in com. zhiyou100 package
public keyword modifier public modifier permissions Any program can access public modifier information
class keyword class tells the program is followed by class information
HelloWorld class name
{} scope-scope
static keyword modifier static The /local modifier does not participate in the modification of the shared
void keyword. The blank, empty indicates a result of the execution of the program following the void, and this result is an empty, blank
main keyword. The entry of the main program is loaded. The necessary content of the
program () A certain function to be achieved by the function/method logo
in the program String class class name string class When text information is used in the program, when you see a word in the program, the first letter is capitalized, It is a class
[] array of flags. The first container that you touched in a java program. The flag container is the
args argument used to store data. The name of the parameter parameter is the
System class used to inject some data into the program declared on the current line
. When using the internal information on the left of the dot ".", use the dot "." to achieve
out, and output
println prin print ln line feed print line feed
"" Output text information format

Guess you like

Origin blog.51cto.com/14954398/2540870