Me n My Programming

If Only I Have TIme

Difference between List and ArrayList

I was doing my graph path and try to return list of path using string. It work fine but I was thinking of improving it using ArrayList. After a while I remember that I may have similar function as List method. In fact I did remember that it is much more simpler to use List. So I start to google around and found out that List is way better than ArrayList.

The (major) difference is List require less memory space than ArrayList but it is specific to a single type. With ArrayList, you can insert from int to string without problem (the problem will came when you want to display it :p)

Here are the references that I read:
+ http://www.geekinterview.com/talk/5520-what-is-difference-between-list-arraylist.html
+ http://bytes.com/groups/net-c/552160-difference-between-arraylist-list-object
+ http://blogs.msdn.com/joshwil/archive/2004/04/13/112598.aspx

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Information

This entry was posted on March 21, 2009 by in Uncategorized and tagged .
%d bloggers like this: