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


Please Help Members By Posting Answers For Below Questions

What is static and final keyword in java?

591


What is the do while loop syntax?

565


Can we initialize the final blank variable?

609


Explain thread in java?

677


What is bigger kb or mb?

602






What is the purpose of a default constructor?

593


What are the 3 types of loops in java?

549


What are examples of modifiers?

528


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. (

1431


How many bytes are there?

560


What are the different ways of creating thread?

582


Is hashset sorted in java?

684


Why do we need strings in java?

539


What flag up means?

613


What are the methods used to implement for the key object in the hash map?

577