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