Under this question, someone answered and said
If it is mobile phone development, static will constitute a memory burden, memory leak hidden trouble, use it as little as possible. However, it is sometimes more convenient to call directly without using examples, which saves memory relatively. Let’s hold on to this one. .
Such a statement is really nonsense. First of all, all methods are static in nature (bottom layer). Non-static methods only pass a hidden this parameter. Therefore, any method, whether static or not, will occupy memory space. Secondly, optimizing memory should not be concerned with methods, but should focus on the survival of objects, Period.