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
How can you say java is object oriented?
What does indexof return in java?
How can you avoid serialization in child class if the base class is implementing the serializable interface?
Can we use synchronized block for primitives?
Can we override constructors in java?
Explain about map interface in java?
What is the reflection?
What is methodological framework?
What is an association?
Does java allow default arguments?
Can a class have more than one object?
Considering notepad/ie or any other thing as process, what will happen if you start notepad or ie 3 times? Where 3 processes are started or 3 threads are started?
What is map java?
Which package is imported by default?
hi am an engineering student and my next plan is for ms in either in us or australia i got my passport but i dont know anything bout visa can u give brief idea 1)How to get prepared for visa and 2)How to apply for top universities and 3)How to pay the fee and so on These all are basic questions plz give me a clear idea