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 many types of threads are there in java?
What are the Main functions of Java?
Explain differences between checked and unchecked exceptions in java?
What is the gregoriancalendar class in java programming?
What is binary search in java?
What is JFC?
What is boolean law?
Difference between default and protected access specifiers?
Is java an open source?
Name some OOPS Concepts in Java?
What do you understand by private, protected and public?
What is the internal implementation of set in java?
Discuss 2D arrays.
Why do we create public static method in java?
What is an arraylist in java?