O'Reilly logo
  • Shayne Riley thinks this is interesting:

it is impossible to exclude concurrent activity from a concurrent collection; locking it will have no effect but to slow the program.


Cover of Effective Java, 2nd Edition


Unless we need to lock two or more collections at the same time, right? right?