What is a variable?
Used to store information in your computer, and DECLARE statements to indicate where and what space you want to store.
Declaration method and assignment of variables
Semicolon: Statement End flag Assignment Number: assign = to the right of the value to the left of the variable
What data types are variables?
Naming syntax specification for variables (legal)
1. Begin with letters, underscores, or dollar signs followed by letters, underscores, dollar signs, or numbers.
2, Java variable name does not have a length limit.
3, Java variable name is sensitive to case.
Hump nomenclature (correct)
1, the name of the variable to choose meaningful English words, do not use pinyin or pinyin abbreviation.
2, the variable name consists of a word is all lowercase.
3, variable name consists of multiple words, starting with the second word of the first letter capital
A valid variable name is not necessarily the correct variable name