When to use volatile keyword in Java? | Hacker News Reader