Can volatile variable be defined as static in java?
To expand on Michael’s comment. static simply means not associated with an instance of the containing class. volatile simply means that the value may be changed by other threads without warning. So your question boils down to “can a field not associated with an instance of the containing class be changed by another thread without … Read more