posted 2 years ago
When you think about static versus non-static, think of whether you need multiply copies of a member for each instance of a class. For instance, it you are using pi in a class, that would obviously be static (and final), because pi isn't going to vary from instance to instance (object to object). But if you have a Car class, using a static speed member would mean every Car instance would have the same speed! So it should be non-static.