GIAC
GSSP-JAVA · Question #142
Which of the following statements are true about Vector and ArrayList? Each correct answer represents a complete solution. Choose all that apply.
The correct answer is B. Each vector tries to optimize storage management by maintaining a capacity and a C. If multiple threads are trying to access an ArrayList instance concurrently, and at least one. See the full explanation below for the reasoning.
Question
Which of the following statements are true about Vector and ArrayList? Each correct answer represents a complete solution. Choose all that apply.
Options
- AArrayList is synchronized and Vector is not synchronized.
- BEach vector tries to optimize storage management by maintaining a capacity and a
- CIf multiple threads are trying to access an ArrayList instance concurrently, and at least one
- DVector is an implementation of the List interface and implements all optional list
How the community answered
(16 responses)- A6% (1)
- B75% (12)
- D19% (3)
Community Discussion
No community discussion yet for this question.