tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Kilbride" <>
Subject Re: ArrayList vs. Vector
Date Mon, 23 Apr 2001 21:06:14 GMT
I recently re-wrote some older java code (jdk 1.1 based) and one of my goals
was to use the new collection classes. I moved all of my Hashtables/Vectors
that didn't need to be thread safe to HashMaps/ArrayLists. No problems under

I still use Vectors/Hashtables when I need thread safety, though. Does
anyone know if it's faster/better to wrap one of the new collection classes
in a Collections.synchronized* class instead? It just seems easier to me to
use Vectors/Hashtables, since they're already internally synchronized.


----- Original Message -----
From: "Hunter Hillegas" <>
To: "Tomcat User List" <>
Sent: Monday, April 23, 2001 12:36 PM
Subject: ArrayList vs. Vector

> I use Vectors in some parts of my Web app and I'm thinking about using
> ArrayLists instead...
> Any caveats to using them in a Web app environment?
> Hunter

View raw message