Final 关键词的妙用

没有人告诉我这个事实:

When the constructor exits, the values of final fields are guaranteed to be visible to other threads accessing the constructed object.

 

还有一个教训就是:

要仔细看完JAVA example 的 code。

posted @ 2014-08-26 18:36  PORTAWAI  阅读(118)  评论(0)    收藏  举报