Beginner C#
Q38 / 100

What is the difference between Array and ArrayList in C#?

Correct! Well done.

Incorrect.

The correct answer is B) Array is typed and fixed-size; ArrayList is non-generic and can hold any object (avoid in favor of List<T>)

B

Correct Answer

Array is typed and fixed-size; ArrayList is non-generic and can hold any object (avoid in favor of List<T>)

Explanation

Array<T> is fixed-size and typed. ArrayList stores object, requiring boxing for value types. List<T> replaced ArrayList in .NET 2.0.

Progress
38/100