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 is defined as false sharing in the context of multithreading?
How do you input a string in java?
What is a lock or purpose of locks in java?
How does thread synchronization occurs inside a monitor? What levels of synchronization can you apply?
How does thread synchronization occurs inside a monitor?
how to create constants in java?
In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?
What is the purpose of the system class in java?
What is natural ordering in java?
Which of the following classes will have more memory allocated?
What is downcasting?
What is ‘has a’’ relationship in java?
What is jit and its use?
Difference between final and effectively final ?
What is blank final variable?