<p>At work today, I came across the <code>volatile</code> keyword in Java. Not being very familiar with it, I found <a href="http://web.archive.org/web/20210221170926/https://www.ibm.com/developerworks/java/library/j-jtp06197/" rel="noreferrer">this explanation</a>.</p>
<p>Given the detail in which that article explains the keyword in question, do you ever use it or could you ever see a case in which you could use this keyword in the correct manner?</p>

“… the volatile modifier guarantees that any thread that reads a field will see the most recently written value.”
- Josh Bloch
If you are thinking about using
```
volatile
```
, read up on the package
```
java.util.concurrent
```
which deals with atomic behaviour.
The Wikipedia post on a
Singleton Pattern
shows volatile in use.