How to synchronize collections?

synchronize

While iterating over synchronized collection, synchronized block must be used.

Leave a Reply

Your email address will not be published. Required fields are marked *