Difference between Array and ArrayList in .Net

Question: Difference between Array and ArrayList in .Net


Array

ArrayList
This has fixed size and can't 
increase or decrease dynamically
Size can be increase or decrease dynamically
Array belong to System.Array namespace ArrayList belong to System.Collection namespace
In Array we can store only one datatype either int,string,char etc... In ArrayList we can store different datatype variable
Insertion and deletion operation is fast Insertion and deletion operation in ArrayList is slower than an Array
Array cannot accept null ArrayList can accept null
Arrays are strongly typed which means it can store only specific type of items or elements. ArrayList are not strongly typed
Array provides better performance than ArrayList If we are using a large number of ArrayList than it degrades performance of boxing and unboxing

Difference between Array and ArrayList in .Net

Download the Android app to get all Government Job Notifications on your Mobile.
Download Now
Important: Please always Check and Confirm the above details with the official Advertisement / Notification.
Previous Post Next Post