I want to know the meaning of atomic and volatile variables in java. When to declare a variable volatile or atomic?
I have the following variable in my code -
private boolean _verificationInProgress = false;
should i make it atomic or voltaile and why ?
This variable is inside a class whose instance is only created once during the lifecycle of an application and used elsewhere.