what is the difference in using volatile keyword in java4 and java5 onwards?
and related to that,
Read/write operations on non-atomic variables(long/double) are atomic when they are
declared as volatile.
Is this also true for java4 or it is valid from java5 onwards???
People have provided good points and references responding to my question answering first part.
Going specific to the second part of question, this i read at some forum:
And
And this is from Java Language Specification,Second Edition: