A volatile qualifier on a field in Java imposes stricter memory semantics. Declaring a field volatile guarantees that all threads immediately see the same contents of the field after it has been written to.
volatile
See also Java Memory Model.
3.135.196.172