dcsimg
Difference between array and arraylist
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   karthikeyan_karunanithi
Posted On:   Saturday, February 18, 2006 07:34 AM

What is the difference between array and arraylist?

Re: Difference between array and arraylist

Posted By:   rahul123  
Posted On:   Wednesday, December 18, 2013 09:43 PM

Array is an fixed size means once we define then we can not modifed size
ArrayList is an growthable size

With respect to performance array is recommended to use
Relatively low performance

Homogenious data element
Homogenious + Hetrogenious  data element in ArrayList.

Array Can hold both primitive and Objects
ArrayList is hold only Objects

Re: Difference between array and arraylist

Posted By:   WarnerJan_Veldhuis  
Posted On:   Sunday, February 19, 2006 06:43 AM

An array is a data-structure that holds objects.



An ArrayList is an object, that internally uses an array to store things, but has conventient methods to get things from and to put things into the array.
About | Sitemap | Contact