Novoda Interview Question

How volatile works in Java?