difference between array and arraylist
Answers
Answered by
0
An array is a container object that holds a fixed number of values of a single type. The length of an array is established when the array is created.
An ArrayList is a dynamic data structure, meaning items can be added and removed from the list. A normal array in java is a static data structure, because you stuck with the initial size of your array.
An ArrayList is a dynamic data structure, meaning items can be added and removed from the list. A normal array in java is a static data structure, because you stuck with the initial size of your array.
Similar questions
Biology,
8 months ago
Math,
8 months ago
Computer Science,
8 months ago
Hindi,
1 year ago
Computer Science,
1 year ago
Biology,
1 year ago