What is the difference between add() and addElement()
method in Vector Class ?
Answer Posted / sandhya sree malladi
This method is identical in functionality to the add
(Object) method (which is part of the List interface).
add(Object ) is due the fact that Vector implements List
Interface and it is appeared since Java 1.2 when Vector was
moved to Collections: The collection classes from earlier
releases, Vector and Hashtable, have been retrofitted to
implement the collection interfaces.
addElement is "original" Vector's method....
| Is This Answer Correct ? | 16 Yes | 4 No |
Post New Answer View All Answers
What is the purpose of final keyword and when to use it?
What is boolean example?
Why synchronization is important?
What is style and indentation?
What is meant by the value of a variable?
How can an exception be thrown manually by a programmer?
Is an integer an object?
Is a method a function?
How do you escape json?
What is array and arraylist in java?
What is arrays fill in java?
worst case complexities of Quick sort and Merge sort.
Explain the difference between runnable and callable interface in java?
What is identifier give example?
Write a program in java to find the maximum and minimum value node from a circular linked list.