Tuesday, August 13, 2013

Difference between Array and ArrayList?


Array
-Array is of fixed size
-Array is the collection of values of the same data type
-Array mainly used to save variables of same data type
-The variables in an array is called array elements
-Array is a reference type data type

ArrayList
-ArrayList is allowed to grow as needed
-Array list are collection of objects of same type or different type.
-Its a Collection of Objects with Sorting Feature.
-Array list is used to store and retrieve the variables of different data type.
-Array list is a class .

No comments:

Post a Comment

http://myaspdotnetworld.blogspot.com