Does using variables in the Java class help less performance?


I am developing an android application and I need to improve its performance. If I use less variables in each class, would that help me to achieve better performance?

Unless you have a ridiculous amount of variables, you won't notice any difference (and chances are the compiler will optimize redundant local variables away anyway). If you want to improve your application's performance you'd be better served in concentrating on improving your algorithms and reducing the amount of accesses to external resources.