Home » JAVA Programming » Collections » Question
  1. Which of these class object can be used to form a dynamic array?
    1. Vector
    2. ArrayList & Vector
    3. Map
    4. ArrayList
    5. None of these
Correct Option: B

Vectors are dynamic arrays, it contains many legacy methods that are not part of collection framework, and hence these methods are not present in ArrayList. But both are used to form dynamic arrays.



Your comments will be displayed only after manual approval.