-
Which of these methods is used to add elements in vector at specific location?
-
- set()
- add()
- addElement()
- AddElement()
- 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.