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
Why string objects are immutable in java?
What is mnemonic in assembly language?
Why declare Main() inside the class in java ?
Explain public static void main(string args[]).
Can we have 2 main methods in java class?
why using interface interface ?
Is nan false?
What is a ternary operator in java? What is an interface?
Can we declare an array without size in java?
What are the three types of design patterns?
What is the difference between stringbuffer and stringbuilder class?
What is java thread dump, how can we get java thread dump of a program?
Can we catch more than one exception in a single catch block?
What is the size of int?
What is hasnext in java?