class public the HelloWorld {// source file can only have a class declared as public, and the class name and source file name was the same as // main entry method, a program public static void main (String [] args) {
/ *
this is the output statement program
* /
System.out.println ( "Java the Hello");
} }
class Person{
}
class Hello{
}
java file execution process: compiling: the javac.exe compiled to generate a plurality of end .class bytecode files
Run: java.exe
Notes: single-line comments // comment text
Multi-line comments / * comment text * /
Multi-line comments can not be nested