Java · Hard · ProWhy is volatile necessary in double-checked locking for Singleton?JavaCore JavaConcurrency