This content has been marked as final. Show 3 replies
Also note that, contrary to your subject line, there's no such thing as a "volatile object." It's variables that can be volatile, not the objects they point to. It's important to understand the distinction.
user10079576 wrote:actually, when the volatile semantics were strengthened in the new memory model introduced with jdk 5, volatile became much more useful. many of the new concurrency utilities are based on volatile references (internally).
I understand with concurrency and atomic concepts in place with JDK , volatile object might not be used much these days . But just wanted to be sure of it , if in case I find a reason to use it.