ReentrantLock belongs to the ______ package in Java.

  • java.lang
  • java.sync
  • java.thread
  • java.util.concurrent
ReentrantLock is part of the java.util.concurrent package in Java. It's a synchronization mechanism used for controlling access to critical sections of code by multiple threads.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *