单项选择题

在ReentrantReadWriteLock 中,哪种方法可以释放写锁?()

A.unlock()
B.writeLock().unlock()
C.readLock().unlock()
D.tryWriteLock().unlock()