SyntaxFix
Write A Post
Hire A Developer
Questions
I think static and volatile have no relation at all. I suggest you read java tutorial to understand Atomic Access, and why use atomic access, understand what is interleaved, you will find answer.
static
volatile