+1 vote
in JAVA by (19.9k points)

ArrayList list = new ArrayList();  

What is the initial quantity of the ArrayList list?

a) 5

b) 10

c) 0

d) 100

1 Answer

0 votes
by (19.9k points)

(b) 10

Reason: The initial or default quantity of an ArrayList is 10. It means when we create an ArrayList without specifying any quantity, it will be created with the default capacity, i.e., 10. Hence, an ArrayList with the default capacity can hold ten (10) values.

Related questions