Consider the Java example below. Notice that neither of the class member variables are declared to be volatile. If I am understanding the memory model and \"hap
volatile
That's correct. That's one of the reasons you might want to use volatile.