title: Why do I need to synchronize a list returned by Collections.synchronizedList
body: <p>i found this at dos.oracle.com</p>
  
  <blockquote>
    <p>public static  List synchronizedList(List list)</p>
    
    <p>Returns a synchronized (thread-safe) list backed by the specified
    list. In order to guarantee serial access, it is critical that all
    access to the backing list is accomplished through the returned list.
    It is imperative that the user manually synchronize on the returned
    list when iterating over it:</p>
  </blockquote>
  
  <pre><code>  List list = Collections.synchronizedList(new ArrayList());
        ...
    synchronized(list) {
        Iterator i = list.iterator(); // Must be in synchronized block
        while (i.hasNext())
            foo(i.next());
    }
  </code></pre>
  
  <p>My question is : Why do i have to Synchronize the list to iterate it if <code>Collections.synchronizedList();</code> is supposed to return an already synchronized list ?</p>
  
  <p>Im just accesing the list in two threads: One Thread just add and the other thread to get and delete. What other classes you recommend to use for this scenario ?</p>
  
  <p>Thanks for reading.</p>