The staging location in the programming language we call variables, we can declare variables, that is, to tell the JVM, I want a location, this position is called XXX name, what type of data can be put. 1. To declare the variable type before use, that is, use keywords such as the Short,byte,char mentioned above to declare 2. Variables are named with some rules, it can not use numbers as the beginning, not special characters, and variable names can not be the same name as Java keywords, commonly used "camel" nomenclature, such as "int ageofstudent". So far, our program paradigm has been written in main (), and the variable declared in the method is called a local variable. 3. You cannot declare a local variable after you have specified no value to it before you use the variable. To initialize a variable before calling it, assign a value to the variable. PS: If, after assigning a variable, you do not intend to change can be added to final, such as final double pi=3.1415926, to prevent yourself or others inadvertently modified. 4. Tips: When representing numeric constants, 0b represents a binary number, and 0x represents a hexadecimal number, such as int a=0xc, which is used to make the expression clearer when it represents a longer number. such as int b=0b1010 _1010 _1010.