單項(xiàng)選擇題

為了保證方法的線程安全,聲明方法的時(shí)候必須用哪個(gè)修飾符?()

A.new
B.transient
C.void
D.synchronized

微信掃碼免費(fèi)搜題