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 the difference between hashmap and hashtable? What is an interface?
Can a class extend 2 classes in java?
What is the use of bufferedreader?
Why do people says “java is robust”?
What is a dot notation?
What is functional interface in java example?
What type of language is java?
Which class is used by server applications to obtain a port and listen for client requests?
What are the features of junit?
How do you know if a value is nan?
What does a void function return?
What is the purpose of return statement?
Can we have try block without catch block?
What is the difference between superclass and subclass?
Why hashset is used in java?