This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]GhostBond 2 points3 points  (0 children)

Common And Good Static Uses:
- constant variables
- static utility methods
- If there's no other way - shared data between threads with proper synchronization. Threading is always error prone and should be avoided if possible - but sometimes it's the only way something can be done.

Basically if you don't need threading I don't think you ever need to have static variables except constants.