Arrays and Collection

Write the difference between Arrays and Collection?

E

Expert

Verified

Array :

It is required to specify the size of an array at the time of its declaration. It cannot be resized dynamically.
Members of an array should be of the homogenous data type.

Collection :

Size of collection can be adjusted dynamically, as per the requirement of the user. It do not have fixed size. Collection can have elements of different types.

   Related Questions in DOT NET Programming

©TutorsGlobe All rights reserved 2022-2023.