Distinguish between array and arraylist in c#?



Distinguish between array and arraylist in c#?..

Answer / Vijendra Sharma

In C#, an Array is a collection of elements having the same data type. It is a fixed size container meaning you cannot change its size once it is declared. On the other hand, ArrayList is a dynamically resizable array that can be used to store a group of objects or values. Unlike arrays, ArrayList allows adding and removing elements during runtime.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

if a base class has a number of overloaded constructors, and an inheriting class has a number of overloaded constructors; can you enforce a call from an inherited constructor to a specific base constructor?

1 Answers   Siebel Systems,


What is querystring in c#?

1 Answers  


What is the purpose of c#?

1 Answers  


How many types of serialization are there in c#?

1 Answers  


What does dbml mean in texting?

1 Answers  


Is string immutable in c#?

1 Answers  


Can you declare a C++ type destructor in C# like ~MyClass() ?

1 Answers  


Which property do we set on a Combo Box to display data on it prior to setting the DataSource ?

1 Answers   Siebel,


What do you mean by expression tree?

1 Answers  


what is IComparable

1 Answers   Wipro,


what is the purpose of using statement in c#

1 Answers   Cognizant,


What are Types of assemblies that can be created in dotnet

1 Answers  


Categories