what is the diff b/w arraylist and vector?
Answer Posted / aravind
1. Arraylist is not synchronized while vector is.
2. Arraylist has no default size while vector has a
default size of 10.
3. Arraylist don't define any increment size while vector
does.
4. Arraylist can be seen directly without any iterator
while vector requires an iterator to display all it's
content. (not very sure).
Is This Answer Correct ? | 5 Yes | 3 No |
Post New Answer View All Answers
Write a program to calculate factorial in java?
What is variable explain with example?
how to convert Java project into Maven ?
What are recursive functions?
Write a program to find the whether a number is an Armstrong number or not?
How java uses the string and stringbuffer classes?
What are the important features of Java 10 release?
What are access specifiers in java ?
What about anonymous inner classes in java?
What is the difference between length and length () in java?
What is the purpose of garbage collection in java?
why we use merge option in hybernate pls give a ex snippet
Can we override constructors in java?
How strings are created in java?
What is java volatile?