final 修饰 class member just like const in c++;
synchronized means thread safe
final 修饰成员变量相当于cpp中的const修饰
synchronized 相当于是声明原子操作,同一个对象的不同synchronized语句块是线程安全的,是synchrony的,,,
Powered by: C++博客 Copyright © Enic