What is difference between array and collection?



What is difference between array and collection?..

Answer / Surbhi Varma

In C#, an array is a fixed-size contiguous block of memory that stores items of the same data type, while a Collection is a grouping of multiple objects stored in a container. Collections can dynamically grow or shrink and store objects of different data types.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is difference between a type and class?

1 Answers   Arigo Infotech,


Wats the diff between sealed class and private class in inheritance

7 Answers   iSoft,


list the steps in code compilation in c#?

1 Answers  


What is the difference between yield and return?

1 Answers  


What are some of the commonly used commands in sqlcommand?

1 Answers  


Can I use ReaderWriterLock instead of Monitor.Enter/Exit for Threading?

1 Answers   HCL,


What are Custom Control and User Control?

1 Answers  


Is it possible to have a static indexer in c#? Allowed in c#.

1 Answers  


Explain about WSDL

1 Answers   Digital GlobalSoft,


Define constructor in c#.

1 Answers  


Can fields inside a class be virtual?

1 Answers  


How to do and Apply Themes to Datagrid,Lable,Textbox,etc., in C#.NET 2005 Windows Application? (like who we will do themes in ASP.NET using .CSS and .SKIN files). Urgent!!

1 Answers  


Categories