Are Java static calls more or less expensive than non-static calls?

前端 未结 12 2425
夕颜
夕颜 2020-11-27 11:57

Is there any performance benefit one way or another? Is it compiler/VM specific? I am using Hotspot.

12条回答
  •  孤街浪徒
    2020-11-27 12:38

    It is unbelievably unlikely that any difference in the performance of static versus non-static calls is making a difference in your application. Remember that "premature optimization is the root of all evil".

提交回复
热议问题