Concurrent read/write to a variable in java

Viewed 7823

If I have a variable from which multiple threads read and only one thread writes, do I need to have a lock around that variable? Would it crash if one thread tries to read and the other thread tries to write at the same time?

3 Answers
Related