What is the difference between `Vector` and `ArrayList` in Java?
`Vector` and `ArrayList` are essentially the same, but `ArrayList` has a more efficient resizing mechanism.
Youâ€™re close, but the main difference lies in synchronization. `Vector` is synchronized, while `ArrayList` is not.
Can you explain how synchronization in `Vector` affects its performance compared to `ArrayList`?