Which of the following is a method provided by ReentrantLock to acquire a lock but allows the thread to be interrupted?

Last Updated :
Discuss
Comments

Which of the following is a method provided by ReentrantLock to acquire a lock but allows the thread to be interrupted?

lock()

tryLock()

lockInterruptibly()

unlock()

Share your thoughts in the comments