A few tips before java programming, and a few tips for java programming
1. First, let's look at the meanings of the abbreviations.
JavaSE Standard Edition Java EE Enterprise Edition javaME Micro Edition
Sdk: soft developement kit, a development kit, including jdk: java developement kit jre: java runtime environment jvm: java Virtual Machine
2. Install jdk with jre. Install jre to run jvm.
3. When configuring environment variables, the following two items are required:
JAVA_HOME: pointing to jdk installation directory Path: pointing to bin directory, convenient to use the tool in bin
4. public class name: the class name and file name must be exactly the same.
5. public static void main (String [] args) {}: four elements of the main method are required
6. Note: generally 30% of the total code
1) single line comment "// balablablabala"
2) multi-line comment "/* balabalabla */"
3) document annotation: generate the api document (export javadoc), which is generally used for annotation classes and annotation methods.
"/**
* Balalala
* Balalala
*/"
7. java is a case-sensitive language.
Int Student; and int student; are two different variables.