Browse - Programming Tips - What the difference between ArrayList and Vector?

Date: 2010dec21
Language: Java

Q.  What the difference between ArrayList and Vector?
Example use:

Vector<String> my_array = new Vector<String>(); ArrayList<String> my_array = new ArrayList<String>();
A. Vector is synchronized. ArrayList allows null as an element. Both are growable.