Sandeep Kumar
What is difference between collection and array?
By Sandeep Kumar in .NET on Dec 27 2015
  • Shaikh Ateeque
    Feb, 2019 7

    Array: Array has fixed in size. We can't insert the values in between the arrays Also we can't remove the values form middle of an arrays. There is no boxing and unboxing process on ArrayCollections: Collection has dynamic in size. We can insert item in between of the collection We can remove an item from middle of collection There is process of Boxing and Unboxing on Collection.

    • 1
  • Bhakiyalakshmi Selvam
    Jan, 2017 30

    We using Array means datatype can be defined in compile time but collection means datatype defined in runtime.

    • 1
  • Vishal Jadav
    Sep, 2016 17

    Array have fixed lengths where collections can be of dynamic length.

    • 0
  • Bhuvanesh Mohankumar
    May, 2016 30

    Collection is higher level, array is subset of Collection

    • 0
  • Bhuvanesh Mohankumar
    May, 2016 30

    Collection is higher level, array is subset of array

    • 0
  • Anil Kumar Murmu
    Jan, 2016 13

    Array is of fixed size and is a collection of similar data type. Collection has a dynamic size and support heterogeneous datatypes.

    • 0
  • Kml Surani
    Jan, 2016 9

    Difference between array and collection is 1. Array is group of similar data type object. Collection is group of homogeneous and heterogeneous data type object. 2.Array is fixed in size. Collection is not fixed in size. 3.Array is strong type. Collection is not strong type.We use generic type to make it strong. Note:The difference between array and collection or array and list or array and datalist will be same.

    • 0
  • Sandeep Kumar
    Dec, 2015 27

    Difference between array and collection is 1. Array is group of similar data type object. Collection is group of homogeneous and heterogeneous data type object. 2.Array is fixed in size. Collection is not fixed in size. 3.Array is strong type. Collection is not strong type.We use generic type to make it strong. Note:The difference between array and collection or array and list or array and datalist will be same.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS