Difference between ArrayList and Vector
ArrayList and Vector both implements List interface and maintains insertion order.
However, there are many differences between ArrayList and Vector classes that are given below.
Example of Java ArrayList
Let's see a simple example where we are using ArrayList to store and traverse the elements.Test it Now
Sonoo Michael James Andy
Example of Java Vector
Let's see a simple example of a Java Vector class that uses the Enumeration interface.Test it Now
umesh irfan kumar