struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Attila Szegedi" <szege...@freemail.hu>
Subject Re: [OT] Not spam...I swear--
Date Tue, 21 Jan 2003 18:06:11 GMT
Even with substituting "synchronized" for "serialized" would he be wrong, as
both Vector and Hashtable are in fact synchronized (unlike ArrayList and
HashMap, respectively).

Attila.

----- Original Message -----
From: "Eric C. Hein" <gromit@mindspring.com>
To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
Sent: Tuesday, January 21, 2003 7:01 PM
Subject: Re: [OT] Not spam...I swear--


> I think "NoSect" may have meant "synchronized".
> Unlike the new collection implementations, Vector is *synchronized*.
>
>
> ----- Original Message -----
> From: "Attila Szegedi" <szegedia@freemail.hu>
> To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>;
> <nosect@yahoo.com>
> Sent: Tuesday, January 21, 2003 9:48 AM
> Subject: Re: [OT] Not spam...I swear--
>
>
> > Wrong. Hashtables are serializable just fine.
> >
> > Attila.
> >
> > ----- Original Message -----
> > From: "NoSect" <nosect@yahoo.com>
> > To: <struts-user@jakarta.apache.org>
> > Sent: Tuesday, January 21, 2003 6:30 PM
> > Subject: RE: [OT] Not spam...I swear--
> >
> >
> > > Vectors are also serialized....hashtables not.
> > > > From: Mark Galbreath [mailto:mark_galbreath@qat.com]
> > >
> > > > Sent: Tuesday, January 21, 2003 11:29 AM
> > >
> > > > To: 'Struts Users Mailing List'
> > >
> > > > Subject: RE: [OT] Not spam...I swear--
> > >
> > > >
> > >
> > > >
> > >
> > > > So...what IS the difference?
> > >
> > > Well, for one thing, trying to do "vectorInstance.put(key, value);"
> > >
> > > won't compile :-)
> > >
> > > Vectors are ordered lists, Hashtables (or HashMaps as they are
commonly
> > >
> > > invoked in Java) are key/value association tables.
> > >
> > > This concludes today's Java 101.
> > >
> > >
> > >
> > >
> > >
> > >
> > > ---------------------------------
> > > Do you Yahoo!?
> > > Yahoo! Mail Plus - Powerful. Affordable. Sign up now
> >
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:struts-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
> <mailto:struts-user-help@jakarta.apache.org>
> >
>
>
> --
> To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>
>
>
>
>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message