O'Reilly logo
  • Dong Yu thinks this is interesting:

Note, however, that this is a specific property of the ReentrantLock class and not a general property of classes that implement the Lock interface.


Cover of Java Threads, 3rd Edition


only ReentrantLock likes the synchronized on the nested lock property