可能重复: java中是否有任何称为"常量折叠"的概念?
嗨,我遇到过Java编译器使用称为Constant Folding的东西.这是什么?它是如何影响的?
java core constantfolding
constantfolding ×1
core ×1
java ×1