Thursday January 02, 2003
ArrayList vs. Vector - which is better for webapps? I've always thought that it's best to use Vectors in Beans or ActionForms because they are synchronized. However, everytime I write one, I get the feeling that I might as well just use an ArrayList. What do you think? The different between the two is that an ArrayList is unsynchronized (seems strange to me since the it does implement Synchronized - the JavaDocs don't lie do they?). It is easy enough to create a synchronized ArrayList using the following code:
Collections.synchronizedList(new ArrayList());
I like ArrayList better, and I'd like to use it - should I just synchronize it on creation, or use Vectors? Posted in Java at Jan 02 2003, 08:53:58 AM MST 9 Comments
Search This Site
Recent Entries
- What's Next
- Jack's Mohawk
- LinkedIn Cuts 10% (a.k.a. The Journey is Over)
- Happy Birthday Abbie!
- Moving from Spring's XML to Annotations in AppFuse
- Free Maven Training in New Orleans on Election Day
- AppFuse Light ยป AppFuse, Maven Archetypes and Shared Web Assets
- Great Weekend in Montana
- Colorado Software Summit 2008 Wrapup
- RESTful Web Applications with Subbu Allamaraju
Posted by Dennis Doubleday on January 02, 2003 at 10:55 AM MST #
Posted by Kurt Wiersma on January 02, 2003 at 11:55 AM MST #
Posted by Paul Yunusov on January 02, 2003 at 05:45 PM MST #
Posted by Brad Smith on January 04, 2003 at 08:58 AM MST #
Posted by 164.164.160.187 on February 10, 2005 at 03:54 AM MST #
Posted by Rajesh Kumar on December 28, 2005 at 06:29 AM MST #
Posted by 220.225.142.21 on December 29, 2005 at 03:51 AM MST #
Posted by 203.99.195.2 on May 04, 2006 at 01:29 AM MDT #
Posted by 59.144.1.220 on July 03, 2006 at 06:45 AM MDT #