Android java performance: invoking static method from self class or outer class
问题 by an high-performance point of view, calling an outer class static method is slower than calling a static method in the same class? 回答1: No, never. Leaving method visibility apart, static method are just global function in the C sense. So it can't matter, what class they belong to, not even on Android. 回答2: It depends. Consider the following: public class Outer { /*private*/ static void outerMethod() { // do stuff } static class Inner { public void doStuff() { outerMethod(); } } } The