title: Examples of Vector vs ArrayList Synchronization
body: <p>Vectors contain synchronized methods, and ArrayLists do not.  These synchronized methods help prevent data corruption when the data is accessed and modified by >1 thread.</p>
  
  <p>Can someone explain this in more detail for me?  What does it mean that Vectors contain synchronized methods?  Do the methods contain internal locks that control the locking and unlocking of the data for multiple thread access?  Can someone provide some examples of where using a vector (vs. ArrayList) could prevent data corruption and shed some more light on the issue or Data Structures and synchronization issues?</p>
  
  <p>Thanks for your time and help .</p>