title: Fail safe vs Fail fast iterators (Vectors)
body: <p>I was studying about fail fast and fail safe iterators and I had this question in mind. I am not sure if my understanding is correct. </p>
  
  <p>Vector is synchronized thread safe collection object in Java. So when I try to get the iterator of vector it is a fail fast iterators which means . . When I use this iterator on vector object and any changes made to the vector it will throw ConcurrentModificationExeption. But since vector is thread safe it should be provided with fail safe iterators.</p>
  
  <p>Why is not the case in Java with vector. Where as with concurrentHashMap it is provided with thread safe iterators.</p>