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

What is structure of java heap? What is perm gen space in heap?

538


What is the integer of 16?

533


What things should be kept in mind while creating your own exceptions in java?

621


Is nan false?

531


How to do encapsulation in java?

568






What are the advantages of compiled language?

571


Discuss different types of errors that generally occur while programming.

571


What is the largest data type in java?

506


What is the use of java?

526


What is the purpose of sizeof operator?

524


List the interfaces which extends collection interface?

531


What is the use of parseint in java?

532


How to do a true java ping from windows?

610


What is a dynamic array java?

511


What is get () in java?

562