what is the difference between ArrayList and Vector
Answer Posted / kishore kumar naidu n
ArrayList Vector
1>. NOT synchronized 1>.Synchronized by Default
2>. Use only Iterator to 2>.Can use Iterator and Enumerator
access elements interface to access elements
3>. It increase it's size 3>.Default it double it's size
by 50% if it run out
off room
4>. No default size 4>.Default size is 10.
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is static and final keyword in java?
What is the do while loop syntax?
Can we initialize the final blank variable?
Explain thread in java?
What is bigger kb or mb?
What is the purpose of a default constructor?
What are the 3 types of loops in java?
What are examples of modifiers?
4.1 Supply contracts (in the form of comments specifying pre- and post conditions) for the enqueue() method of the LinkedQueue class given in the Appendix. (2) 4.2 Let Thing be a class which is capable of cloning objects, and consider the code fragment: Thing thing1 = new Thing(); //(1) Thing thing2 = thing1; //(2) Thing thing3 = (Thing) thing1.clone(); //(3) Explain how the objects thing2 and thing3 differ from each other after execution of the statements. (
How many bytes are there?
What are the different ways of creating thread?
Is hashset sorted in java?
Why do we need strings in java?
What flag up means?
What are the methods used to implement for the key object in the hash map?