Dell Technologies interview question

Why use an ArrayList over an array?

Interview Answer

Anonymous

Aug 23, 2024

An ArrayList is used to represent a dynamic list. While Java arrays are fixed in size and can't be modified.