Constant learning JAVA

constant:

1. modified keyword final variables can not be modified
2. literals
Constant position in memory: constant pool
Life Cycle: it is destroyed at the end of the project.

3. Digital literal: numbers that appear in the program.

Guess you like

Origin www.cnblogs.com/yindong2019/p/11780751.html