Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Knute Johnson Newsgroups: comp.lang.java.programmer Subject: Re: where's your Vector, victor Date: Fri, 30 May 2014 07:32:27 -0700 Organization: A noiseless patient Spider Lines: 18 Message-ID: References: <19baa0fb-e0fb-4565-b1eb-44018eb3045d@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 30 May 2014 14:32:25 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="aba33539224e5c782fe0c4053f7756fd"; logging-data="10396"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19v0ht8kHUFodPDELySUZW/" User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 In-Reply-To: <19baa0fb-e0fb-4565-b1eb-44018eb3045d@googlegroups.com> Cancel-Lock: sha1:DASnXFuoGHP4zJhLx6FAkPgzVdE= Xref: csiph.com comp.lang.java.programmer:28618 On 5/30/2014 01:11, bob smith wrote: > I read that the Vector class is obsolete. > > Can someone tell me in a nutshell why this is so? > > Thank you. > Mostly mythology. The Vector provides some additional functionality over a synchronized List but it's probably not something you will need. If you don't need any synchronization then use an ArrayList, if you do the Vector will work fine too. I use Vector every time I can just to send the big giant heads into a tizzy. -- Knute Johnson