what is volatile and atomic in java
Posted on 2014-12-17
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.