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
What state is a thread in when it is executing?
How to handle a web browser resize operation?
What is javac_g?
how would you implement a thread pool? : Java thread
Is there a way to increase the size of an array after its declaration?
Can a boolean be null java?
What is canonical name in java?
What are the core java topics?
Why does my function print none?
Explain the importance of finally block in java?
When a lot of changes are required in data, which one should be a preference to be used? String or stringbuffer?
How to convert string to byte array and vice versa?
Differentiate between the constructors and methods in java?
What are invisible components?.
What is the use of bufferedreader?