Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
1. Constant
Constant: it refers to the Java program in fixed data.
2. Variables and Data Types
Variable: Constant data is fixed, then the amount of change in the program can be called variables.
Java, requires a variable can only hold one data must be explicitly saved data types.
Variable definition format consists of three elements: data type, variable name, data values.
Defines all the basic data types of variables, as follows:
Variable Name: braces in the same range, the variable name can not be the same.
Variable assignment: defined variables, no assignment can not be used.