Question: are class variables thread safe?
Answer: In the JVM, each thread is awarded its own Java stack. ... Given the structure of the JVM, local variables, method parameters, and return values are inherently "thread-safe." But instance variables and class variables will only be thread-safe if you design your class appropriately.