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