以下哪个关键字可以用来为对象加互斥锁?()
A:transient
B:static
C:serialize
D:synchronized
出自:国家开放大学《面向对象程序设计》