How does the Lock interface improve synchronization in Java?
Lock
By reducing the overhead of thread creation
By allowing thread priorities to be changed dynamically
By providing more flexible locking mechanisms than synchronized blocks
synchronized
By automatically managing thread pools