Is ArrayList thread safe?

Is ArrayList thread safe?

Vectors are synchronized. Any method that touches the Vector 's contents is thread safe. ArrayList , on the other hand, is unsynchronized, making them, therefore, not thread safe. … So if you don't need a thread-safe collection, use the ArrayList .

Is ArrayList faster than array?

Array is faster and that is because ArrayList uses a fixed amount of array. However when you add an element to the ArrayList and it overflows. It creates a new Array and copies every element from the old one to the new one. … However because ArrayList uses an Array is faster to search O(1) in it than normal lists O(n).