Difference between Array and ArrayList in .net

Array
ArrayList
Array has fixed size.
ArrayList size can be increase and decrease.
Array collection of similar items
ArrayList can hold item of different types of items
Array can be multi-dimensional
ArrayList can be single-dimensional only
Array comes under the System namespace
ArrayList comes under the System.Collections namespace.
string[] vowel=new string[];
ArrayList arrlist=new ArrayList();
Difference between Array and ArrayList in .net Difference between Array and ArrayList in .net Reviewed by NEERAJ SRIVASTAVA on 11:06:00 PM Rating: 5

No comments:

Powered by Blogger.