Question: what is the difference between add() and addelement() method in vector class?
Answer: What is difference between add() and addElement() in Vector? - The add() methods inserts an element at a given position of the vector. - The addElement () method adds an object at the end of the vector and increases the size of the vector by one. Sets can have unique values.