java: is using a final static int = 1 better than just a normal 1?

后端 未结 7 1854
轻奢々
轻奢々 2020-12-11 06:47

I just saw a class (an big API module), where there is alot of stuff like

readParamString(Object params, int index)

and they have in that c

相关标签:
7条回答
  • 2020-12-11 07:17

    Maybe it's because the variable is inlined by the compiler.

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