ArrayList and Vector are two of the most used classes on the Java collection package and the difference between Vector and ArrayList is one of the most frequently asked java interview questions on first-round or phone interviews. Though it’s quite a simple question in my opinion but knowledge of when to use Vector over ArrayList or does matter if you are working on a project. In this article, we will some point-based differences between Vector and ArrayList in Java and trying to understand the concept behind those differences.
This post first appeared on Javarevisited: Blog About Java Programmin, please read the originial post: here