Java中修饰常量用static final
用static final同时修饰的变量只能是成员变量而不能是局部变量
初始化:
①:定义时赋值
②:静态代码块static{}中赋值
static 和 final可以交换位置