單項選擇題

線程調(diào)用wait()/notify()/notifyAll()中的任何一個方法時,如果當前線程沒有獲得該對象的鎖,那么就會拋出哪種異常()

A.NullPointException
B.llegalMonitorStateException
C.IndexOutException
D.OutOfMemoryException

微信掃碼免費搜題