What are the constructors of ArrayList?
-
ArrayList( )
-
ArrayList(Collection c)
-
ArrayList(int capacity)
-
All of the Above
D
Correct answer
Explanation
ArrayList has three constructors: a no-arg constructor creating an empty list with default capacity (10), one accepting a Collection to initialize with elements, and one accepting an initial capacity integer. All three are valid and commonly used.