what is the difference between ArrayList and Vector
Answer Posted / thoi
Arraylist also has the initial capacity as 10.
Please check the following code in ArrayList class:
public ArrayList() {
this(10);
}
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
How do you take thread dump in java?
How is string immutable in java?
Does google use java?
Explain some best practices you would apply while using collection in java?
What is the use of toarray () in java?
What is the difference between a synchronized method and a synchronized block?
What is a char in java?
Can we force the garbage collection to run?
What an i/o filter in java programming?
How would you use Bubble Sort to sort the number of elements?
How do you allocate memory to object?
What is jagged array in java?
Can a class be declared as static?
What is the purpose of interface?
Explain the difference between runnable and callable interface in java?