在Java语言中,用关键字final来定义一个常量。常量一旦被初始化后不能再更改。final type varName=value;final int a= 1;使用final修饰的PI等称为符号常量。