Does use of final keyword in Java improve the performance?

前端 未结 13 1078
粉色の甜心
粉色の甜心 2020-11-22 08:42

In Java we see lots of places where the final keyword can be used but its use is uncommon.

For example:

String str = \"abc\";
System.ou         


        
相关标签:
13条回答
  • 2020-11-22 09:19

    According to IBM - it doesnt for classes or methods.

    http://www.ibm.com/developerworks/java/library/j-jtp04223.html

    0 讨论(0)
提交回复
热议问题