Home » JAVA Programming » Collections » Question
  1. Which of these methods is used to add elements in vector at specific location?
    1. set()
    2. add()
    3. addElement()
    4. AddElement()
    5. None of these
Correct Option: C

addElement() is used to add data in the vector, to obtain the data we use elementAt() and to first and last element we use firstElement() and lastElement() respectively.



Your comments will be displayed only after manual approval.