Q:

List out the differences between Array and ArrayList in C#?

0

List out the differences between Array and ArrayList in C#?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Answer:

Array
1. Arrays are strongly typed collection of same datatype and these arrays are fixed length that cannot be changed during runtime.
2. Arrays belong to System.Array namespace.

ArrayList
1. Array lists are not strongly type collection. It will store values of different datatypes or same datatype. Array list size will increase or decrease dynamically it can take any size of values from any data type.
2. Arraylist belongs to System.Collection namespaces

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Top 100 C# interview questions and answers 2022

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
Why we use keyword “const” in C#.... >>
<< What is the difference between “out” and “re...