Differentiate Vector and ArrayList?
Answer Posted / pallavi thakare
a)Vector is a synchronized, where as an ArrayList is not
synchronized.
b)arraylist is not leggacy,it introduce JDK 1.7,where vector is leggacy.
c)arraylist uses iterator,where vector used enumration.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What are the 4 types of research methods?
Write a program to reverse a number in java?
Can memory leak in java?
I have multiple constructors defined in a class. Is it possible to call a constructor from another constructor’s body?
Why arraylist is used in java?
Is static a keyword in java?
What are nested classes in java?
What is the lifetime and scope of a variable?
What is tostring () method?
Does windows 10 need java?
What is a bubble sort in java?
How do you override a method in java?
What are the kinds of polymorphism?
How many ways can an argument be passed to a subroutine and explain them?
Does java initialize arrays to zero?