Use of the volatile modifier makes this code thread safe in Java 5.0 and above. class NonThreadSafeSingleton {. private static volatile ...
確定! 回上一頁