Novoda interview question

How volatile works in Java?