What does volatile mean in Java?

«volatile» is a keyword used when a variable can be used by many threads. It allows an asynchronous access to this variable. By using this keyword the JVM refreshes, after each use, the value of this variable, the value is updated and every thread gets the most recent value. That can be useful when we manage a workflow process for example.


See also :

Share it with your freinds on Facebook Tweet it to your freinds on Twitter Myspace Friendfeed Technorati del.icio.us Digg Google Yahoo Buzz StumbleUpon

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

WP SlimStat