How does access modifier impact the performance in Java?

后端 未结 2 1152
南旧
南旧 2021-01-27 00:08

In java programming, method level access modifiers using protected or public where private can be used will affect the performance in any way? if so in what what way it affects

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-27 00:34

    Even if there is a theoretical difference, I doubt that there is a measurable diffrence. At least in any sensible Java runtime

提交回复
热议问题