Question from the Java - Fundamentals test

What is the benefit of using a ReentrantLock in Java?

Medium

What is the main advantage of using java.util.concurrent.locks.ReentrantLock over the synchronized keyword?

Author: W3D TeamStatus: PublishedQuestion not yet passed
Edit
1
Community EvaluationsNo one has reviewed this question yet, be the first!