Home / CSE MCQs / JAVA MCQs :: Discussion

Discussion :: JAVA MCQs

  1. Which of these class object can be used to form a dynamic array?
  2. A.
    ArrayList
    B.
    Map
    C.
    Vector
    D.
    Both a & b

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    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.


Be The First To Comment