Can we synchronize ArrayList or HashMap? (I said we can - correct me if I am wrong) If ArrayList and HashMap can be synchronized using synchronized keyword, then what is the use of having Vector and Hashtable?
Originally posted by Rob Prime: I still wonder why these classes are not deprecated. And even if the classes are not, then why the "renamed" methods (e.g. addElement, elementAt) are not.
There are several classes in Swing which use Vector internally (and in their public interfaces too). Perhaps Sun didn't want to change those classes, not even to use the methods from the List interface.