addElement are members of Vector class & allow to input new element - Java

Q.  Which of the following methods are members of the Vector class and allow you to input a new element? (Java)
- Published on 26 Jun 15

a. addElement
b. insert
c. append
d. addItem

ANSWER: addElement
 
The add element is used to add specified components to the end of the vector and increase its size by one. The addElement() does not return any value.

➨ Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)
▲