+ 1

What is different b/w Array and ArrayList ?

java

13th Jun 2018, 8:57 AM
Guddu Kumar
Guddu Kumar - avatar
2 Answers
+ 2
The Array holds fixed amount of elements, once initialized. While an ArrayList can be extended.
13th Jun 2018, 9:51 AM
Boris Batinkov
Boris Batinkov - avatar
+ 1
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
13th Jun 2018, 11:16 AM
KrOW
KrOW - avatar