-
ArrayList is not synchronized
almost 9 years ago
-
almost 9 years ago
Dear Shahbaz,
When we say that "arraylist is not synchronized" this means we cannot use the arraylist in Multithreading environment because the arraylist is not synchronized and it could be modified by any thread in multithreaded environment and the concurrent read or dirty read situation is created. you can make the arraylist synchronized using the synchronizeList() method. If arraylist is synchronized that could not be modified at the same time by other thread while one thread cannot complete their work with that.
-
almost 9 years ago
Hope this may help. http://stackoverflow.com/questions/6910512/what-does-it-mean-when-we-say-an-arraylist-is-not-synchronized
-
2 Answer(s)