Differentiate Vector and ArrayList?
Answer Posted / anitha
a)Vector is a synchronized, where as an ArrayList is not
synchronized.
b)when size is going to exceed, the ArrayList size is
double of it's size, where as Vector size is increase half
of its size.
except these two both r roughlt equal.
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
What if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?
Where is the find and replace?
What do you know about the garbage collector in java?
How many types of constructors are used in java?
Write a program in java to calculate the difference between the sum of the odd level and even level nodes of a binary tree.
What are the wrapped, classes?
Why is java called the platform independent programming language?
Can finally block be used without a catch?
Which is best ide for java?
Is this valid in java ? Can we instantiate interface in java?
Write a program based on Java script program.
What happens to the Exception object after handling an exception?
What are the steps involved to create a bean?
What is a double vs float?
What are the different types of sorting in java?