Differentiate Vector and ArrayList?

Answer Posted / anitha

a)Vector is a synchronized, where as an ArrayList is not
synchronized.

b)when size is going to exceed, the ArrayList size is
double of it's size, where as Vector size is increase half
of its size.

except these two both r roughlt equal.

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to write a program for sending mails between client and server

1559


Is void a return type?

559


What are the drawbacks of singleton class?

548


What is bitwise complement?

509


What is the significance of java packages?

624






What is the purpose of the finalize() method?

718


What is the right data type to represent a price in java?

574


How is it possible for two string objects with identical values not to be equal under the == operator?

536


Explain how to force the garbage collection in java.

542


What is internal variable?

544


What is initial size of arraylist in java?

544


What is singleton pattern?

565


5 Coding best practices you learned in java?

646


What are identifiers in java?

585


What is array size in java?

508