Home > DeveloperSection > Interviews > What is the difference between arrays and collection?

Posted on    August-27-2014 11:34 PM

 C# C# 
Ratings:
 1 Answer(s)
  768  View(s)
Rate this:

Sumit Kesarwani

Total Post:782

Points:3910
Posted on    August-27-2014 12:00 AM

Array:

You need to specify the size of an array at the time of its declaration. It cannot be resized dynamically.

The members of an array should be of the same data type.

Collection:

The size of a collection can be adjusted dynamically, as per the user's requirement. It does not have fixed size.

Collection can have elements of different types.


Don't want to miss updates? Please click the below button!

Follow MindStick