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
English,
7 months ago
World Languages,
7 months ago
Hindi,
1 year ago
Computer Science,
1 year ago
Biology,
1 year ago