以下哪个不属于java.util.concurrent.locks.Lock里面的方法
- A. wait
- B. lock
- C. trylock
- D. newCondition
正确答案 A:Lock答案解析:接口里面的方法有lock、lockInterruptibly、tryLock、tryLock(long time, TimeUnit unit)、unlock、newCondition 并没有wait所以,答案是A
正确答案 A:Lock答案解析:接口里面的方法有lock、lockInterruptibly、tryLock、tryLock(long time, TimeUnit unit)、unlock、newCondition 并没有wait所以,答案是A