Vector<String> my_array = new Vector<String>(); ArrayList<String> my_array = new ArrayList<String>();A. Vector is synchronized (so there's a speed hit) ArrayList allows null as an element. Both are growable. ArrayList is more widely used.
Programming Tips - Java: What's the difference between ArrayList and Vector
Date: 2010dec21
Language: Java
Q. Java: What's the difference between ArrayList and Vector
Example use: