Identify two benefits of using ArrayList over array in software development.

Identify two benefits of using ArrayList over array in software development.

Identify two benefits of using ArrayList over array in software development.

A.
reduces memory footprint

B.
implements the Collection API

C.
is multi.thread safe

D.
dynamically resizes based on the number of elements in the list

Explanation:



Leave a Reply 2

Your email address will not be published. Required fields are marked *


imyrta

imyrta

Answer: A,D

Explanation:

ArrayList supports dynamic arrays that can grow as needed. In Java, standard arrays are of a fixed length. After arrays are created, they cannot grow or shrink, which means that you must know in advance how many elements an array will hold. But, array lists are created with an initial size. When this size is exceeded, the collection is automatically enlarged.