+1 vote
in JAVA by
Given,

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

(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.

...