O'Reilly logo
  • nasser alkhateeb thinks this is interesting:

With a synchronized collection, these compound actions are still technically thread-safe even without client-side locking, but they may not behave as you might expect when other threads can concurrently modify the collection


Cover of Java Concurrency in Practice


Because the don't leave the object in an invalid state