📜  java代码示例中的volatile

📅  最后修改于: 2022-03-11 14:52:25.033000             🧑  作者: Mango

代码示例1
For Java, “volatile” tells the compiler that the value of 
a variable must never be cached as its value may change 
outside of the scope of the program itself.