Creating a variable instead of multiple getter usage - which is better for overall performance?

后端 未结 0 1638
故里飘歌
故里飘歌 2021-01-22 16:22

In a Java environment, which performs better?

a)

public void eventHandler(SomeEvent event) {
    event.getPlayer()         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题