单项选择题

在ReentrantLock 的实现中,哪个方法返回一个Condition 对象,用于实现类似Object 的wait 和notify 功能?()

A.condition()
B.newCondition()
C.lock()
D.getCondition()