A field may be declared volatile , in which case the Java Memory Model ensures that all threads see a consistent value for the variable (§17.4).
確定! 回上一頁