Vector has been refactored to implement List (which extends Collection) - so
it is part of the Collection classes.  The differnece is just
synchronization, which may be necessary in certain cases.  They both have
their place.

-----Original Message-----
From: Borislav Iordanov [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 01, 2002 11:35 AM
To: Struts Users Mailing List
Subject: Re: Are Vectors in a FormAction set to null after a user has
submitted a form?


Well, for one thing, Vectors are synchronized and ArrayLists aren't. So the
latter are faster (I've heard something like 20% faster) and preferable when
you don't need synchronization. Same goes for Hashtable vs. HashMap and in
general old vs new collection classes.

Boris

On Fri, 01 Feb 2002, you wrote:
> Hi Chuck,
> 
> I use Vector all the time. I'm curious why who feel that List/ArrayList is
> preferable.
> 
> Dave D
> 
> 
> ----- Original Message -----
> From: "Chuck Cavaness" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, February 01, 2002 2:37 AM
> Subject: Re: Are Vectors in a FormAction set to null after a user has
> submitted a form?
> 
> 
> >
> > p.s. Is anyone really using the Vector class anymore? Why aren't you
using
> List/ArrayList? Just curious.
> > --
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to