Posts Tagged ‘hashmap’
Synchronized collections everywhere
Vector
and Hashtable
are just the synchronized versions of the ArrayList
an HashMap
but working much slower. Use unsynchronized collections unless thread-safety is really required.
Advertisements