Welcome to WebmasterServe!

FREE TO JOIN! Join us now to engage in informative and friendly discussions about Webmastering, SEO, SEM, Internet Marketing, Programming, Graphic Design, Online Jobs and more. What are you waiting for? Ready to join our friendly community? It takes just one minute to register.

Dismiss Notice

Join WebmasterServe Forums 
Join the discussion! Have a better idea or an opinion? It takes just one minute to register Click Here to Join

Help Me/Question What Is The Difference Between Array And Arraylist In C#?

Discussion in 'C# Programming' started by VIVEK KUMAR, Mar 13, 2016.


    Yellow Belt

    Mar 8, 2016
    +2 / -0
    As we know array stores the element of similar type. Example like it stores only char type or only int type or only float type. but not mixture of them. Where as arraylist can store different element.
    Array is always fix in size where arraylist may be any size. It is not necessary to declare the size of arraylist.
  2. AngularTeam

    AngularTeam New Member

    Mar 17, 2016
    +0 / -0
    That one of the common question when you start coding. So, Main difference between Array vs ArrayList in C# is static nature of Array and dynamic nature of ArrayList. Once created you can not change size of Array but ArrayList can re-size itself when needed. Another notable difference between ArrayList and Array is that Array is part of core Java programming and has special syntax and semantics support in Java, While ArrayList is part of Collection framework along with other popular classes e.g. Vector, Hashtable, HashMap or LinkedList. Hope now you understand the main difference and can deepen into web application development process.

Share This Page