What is the difference between add() and addElement()
method in Vector Class ?
Answer Posted / sathya
add(int indx, Object e): Inserts the specified element at
the specified position in this Vector.Return type void
add(Object e):Appends the specified element to the end of
this Vector.Return type boolean
addElement(Object obj): Adds the specified component to the
end of this vector, increasing its size by one.Return type void.
Is This Answer Correct ? | 19 Yes | 3 No |
Post New Answer View All Answers
How is string immutable in java?
Is java a pure object oriented language?
What is e in java?
I want my class to be developed in such a way that no other class (even derived class) can create its objects. How can I do so?
What is singleton class example?
List primitive java types?
Is java written in c?
What are methods?
How transient variable is different from volatile variable?
What is http client in java?
What is method overloading with type promotion?
What is dot operator?
How do you end a program?
What are the differences between abstract class and interface?
What are peerless components?