If you declare a member variable as volatile in Java, does this mean that all the object\'s data is stored in volatile memory, or that the reference to the object is stored in v
This would only make the object reference volatile. In order to make obj.i and obj.c also volatile you have to make them volatile explicitly
class C{ volatile int i = 0; volatile char c = 'c'; }