- case-sensitive : Java is case-sensitive, which means that the identifier Hello is different from hello.
- class name : For all classes, the first letter of the class name should be capitalized. If the class name consists of several words, the first letter of each word should be capitalized, such as Myfirstjavaclass.
- method Name : All method names should start with a lowercase letter. If the method name contains several words, the first letter of each subsequent word is capitalized.
- source file Name: The source file name must be the same as the class name. When saving the file, you should use the class name to save the filename (remember that Java is case-sensitive), and the suffix of the file name is. java. (a compilation error is caused if the file name and the class name are not the same).
- Main Method Entry : All Java programs are executed by the public static void Main (String args[]) method.
Some points to note in Java Basic syntax