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
Can a class have multiple subclasses?
What does the string method compareto () do?
Can we assign null to double in java?
Are constructors methods?
Java is pass by value or pass by reference? Explain
What is return code?
Describe different states of a thread.
What is http client in java?
What is the internal implementation of set in java?
What is an exception? difference between Checked and Unchecked exception in Java
is it possible to instantiate the math class?
When is the arraystoreexception thrown?
What is re-factoring in software?
What do you understand by casting in java language?
Explain the difference between string, stringbuffer and stringbuilder in java?