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

When would you use a static class?

574


Can we execute a program without main?

528


What is the function of java?

508


How many bytes is a string in java?

527


What does regex mean?

561






Is java ee a framework?

516


Can we declare an array without size in java?

513


Can we sort hashset in java?

620


How many bits are in a sentence?

579


What is the final method?

595


Explain the use of sublass in a java program?

594


What is cr keyboard?

646


Tell me the latest versions in java related areas?

574


Explain heap sort?

694


What is the similarity between dynamic binding and linking?

601