final 修飾 class member just like const in c++;
synchronized means thread safe
final 修飾成員變量相當于cpp中的const修飾
synchronized 相當于是聲明原子操作,同一個對象的不同synchronized語句塊是線程安全的,是synchrony的,,,
Powered by: C++博客 Copyright © Enic