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
How big is a boolean?
If a class is declared without any access modifiers, where can the class be accessed?
What are the three parts of a lambda expression? What is the type of lambda expression?
How big is a 64 bit float?
Can we convert stringbuffer to string?
How many bits is a char?
Why pass by reference is not possible in java?
Is the milky way in a void?
What are the various access specifiers for java classes?
How many arguments can a method have java?
What is <> used for in java?
Does set allows null in java?
Is intellij better than eclipse?
What do you mean by object?
What type of value does sizeof return?