Demonstrating when volatile is required in Java · HackerTrans