Vector
class is by default sychronized, while
ArrayList
class is not.
list2=new ArrayList<String>(list1);
→ Adds all elements from
list1
to
list2
.