What is volatile VARIABLE and there PURPOSE?Volatile variables are those variables that always READ from the main memory and not from THREAD cache memory. And these are mainly used during syncronization.
Your experience on this site will be improved by allowing cookies. Read Cookie Policy