+ 1
What is different b/w Array and ArrayList ?
java
3 ответов
+ 2
The Array holds fixed amount of elements, once initialized. While an ArrayList can be extended.
+ 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