When to use volatile keyword in Java · HackerTrans