Interviews1 answer
what is the different in using arraylist and array
1 Answer
1 - Array is a collection of Homogeneous items, while array list is a collections of objects(any object)
2 - Array is kind of static nature...this means you can not change dimension run time, not you can add/remove existing elements from it.
while ArrayList is dynamic in behovior,...you can add/remove elements from that.
You can say ArrayList has behaviour "Random access" from array and "Dynamic" from Liked List
nileshhirapraPosted Aug 24, 2006, 8:55 PM EDT