What is different b/w Array and ArrayList ? | Sololearn: Learn to code for FREE!


What is different b/w Array and ArrayList ?


6/13/2018 8:57:05 AM

Guddu Kumar

3 Answers

New Answer


The Array holds fixed amount of elements, once initialized. While an ArrayList can be extended.


Array: Its backed with a data structure that store elements in memory like an native array (a contiguos element group) ArrayList: Use a list data structure for store items in memory Because these Array has a more fast access to element but for some modification on it can be necessary multiple step internally... ArrayList has a more slow access to elements but modification on it its very easy to implementation level... For understand better, search array and linked list data structure differences