7
Reply

What is difference between collection and array?

Sandeep Kumar

Sandeep Kumar

Dec 27, 2015
4.5k
0

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

    Bhakiyalakshmi Selvam
    January 30, 2017
    1

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

    Vishal Jadav
    September 17, 2016
    0

    Collection is higher level, array is subset of Collection

    Collection is higher level, array is subset of array

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

    Anil Kumar Murmu
    January 13, 2016
    0

    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.

    Kml Surani
    January 09, 2016
    0

    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.

    Sandeep Kumar
    December 27, 2015
    0