Tag java volatile example