At work today, I came across the volatile keyword in Java. Not being very familiar with it, I found this explanation.
volatile
Given the detail in which that arti
Every thread accessing a volatile field will read its current value before continuing, instead of (potentially) using a cached value.
Only member variable can be volatile or transient.