Edit:使用记事本编辑程序,每一个Java程序都有拓展名 .java
Compile:在cmd上使用javac命令编译java程序,生成一个 .class文件
Load:Java程序必须先加载到内存中才能执行,使用 java+文件名命令
Verify:检查程序中无错误
Execuct:使用虚拟机编译字节码(bytecode),并运行
three comment formats:1.// one line 2./*many lines*/ 3.//*doc 文件*doc文件*doc文件*/
Compile ignore comments
{} delimit code block,and must be in pairs
indentation highlights the structure of the code
Define a class
An application must have a main method
Complie excute main method first
Output can be achieved by println and print command