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 function and its uses?
Can a class be a super class and a sub-class at the same time? Give example.
Is java call by reference?
Write a program to print fibonacci series up to count 10.
What are the advantages of java over C++?
Is it safe to install java on my computer?
What does 3 dots mean in java?
What is hashing principle in java?
What is exception propagation?
What is hashing in java?
Can a static class have a constructor?
Difference between this() and super() in java ?
What is floating data type?
Can constructor be synchronized?
Which class is used by server applications to obtain a port and listen for client requests?