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 are java objects passed to a method and what are native methods?
What is difference between word and integer?
What is methodological framework?
What is skeleton and stub? What is the purpose of those?
What is final class?
What are the features of junit?
What is a default constructor and also define copy contrucyor?
Which methods are used during serialization and deserialization process?
Is this valid in java ? Can we instantiate interface in java?
What package is math in java?
Describe string intern() methodology
Why stringbuffer is faster than string?
What happens if a constructor is declared private?
Give example to differentiate between call by value and call by reference.
Can inner class extend any class?