Here is the definition for volatile kerword:
Volatile is a
Java programming language keyword used in variable declarations that specifies that the variable is modified asynchronously by concurrently running threads.
Roopa
Originally posted by devesh singh:
we say that volatile changes the orginal copy of the variable i.e
reading and writing on the variable produces changes in the master copy of he variable
so does this also not happen in the case of static variable
I think ia hve got wring notions of the volatile variable
ps anyone expalin me the details of volatile keyword.