Array & ArrayList

Discussion in 'ASP .Net' started by rn5a@rediffmail.com, Feb 20, 2007.

  1. Guest

    What's the difference between Array & ArrayList? If possible, please
    support with code snippets (preferably using VB & not C#) to highlight
    the difference between Array & ArrayList.

    Thanks
    , Feb 20, 2007
    #1
    1. Advertising

  2. Well, if you look up ArrayList class in the documentation, it will explain in
    great detail. The main difference is that an ArrayList holds only type
    Object (which involves boxing) and it can expand as you add items to it,
    unlike an Array which type's length is fixed.
    Peter

    --
    Site: http://www.eggheadcafe.com
    UnBlog: http://petesbloggerama.blogspot.com
    Short urls & more: http://ittyurl.net




    "" wrote:

    > What's the difference between Array & ArrayList? If possible, please
    > support with code snippets (preferably using VB & not C#) to highlight
    > the difference between Array & ArrayList.
    >
    > Thanks
    >
    >
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=, Feb 20, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Saravanan Rathinavelu

    Iterate through ArrayList using an another ArrayList

    Saravanan Rathinavelu, Aug 16, 2003, in forum: ASP .Net
    Replies:
    3
    Views:
    2,727
    Natty Gur
    Aug 19, 2003
  2. Andrew Banks

    Converting arraylist to string array

    Andrew Banks, Feb 18, 2004, in forum: ASP .Net
    Replies:
    5
    Views:
    26,502
    Martin Dechev
    Feb 18, 2004
  3. Kaidi
    Replies:
    4
    Views:
    2,333
    Kaidi
    Jan 3, 2004
  4. xz
    Replies:
    16
    Views:
    2,343
  5. Philipp
    Replies:
    6
    Views:
    902
    Arne Vajhøj
    May 28, 2008
Loading...

Share This Page