1. Sensitive to case
2.class, a class is a building block for building all Java applications and applets, and all of the content in a Java application must be placed in a class.
3. Class name, no length limit, must start with a letter, you can make any combination of letters, numbers, underscores, cannot use Java reserved words;
You should use the Camel name method, with the first letter of each word capitalized.
4. The source code file name must be the same as the name of the public class and used. Java as the extension.
All functions in 5.Java must be methods of a class, so the main method must have a shell class.
The 6.main method does not return an "exit code" to the operating system, and if the main method exits gracefully, the exit code is 0, indicating that the program was successfully run.
7.SYSTEM.OUT.PRINLN (), output statement and newline;
System.out.prin (), Output no newline.
8. Comments,//To the end of the bank
/* between */
/** between */, can be used to automatically generate documents
One of the Java learning notes