<分区>
Possible Duplicate:
Is there any performance reason to declare method parameters final in Java?
Does use of final keyword in Java improve the performance?
所以有一个类级别的对象变量,它在对象创建时分配并在对象的生命周期内保持不变:
class MyClass
{
private Rect rc = new Rect();
//...
}
将它声明为 final
对我有什么好处?方法级变量的相同问题。