diff vector arraylist

Answer Posted / veerendra kumar

Here these two are belongs to Collections which are
in(java.util package),Diff is:
1.Vector:this class belongs to legasy collection framework
ArrayList:belongs to new Collection framework
2. Vector:it contains key&value pair
like:Vector v=new Vector();
v.add(0,"2");
v.add(1,"5");
ArrayList:it contains value only
3.Vector:it is Synchronized format
ArrayList:not synchronized

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How would you create a button with rounded edges?

560


What is prototype?

607


What are local interfaces? Describe.

697


Is there a guarantee of uniqueness for entity beans?

569


What are the services in RMI ?

1884






What is the relationship between local interfaces and container-managed relationships?

594


What are the difference between RMI and CORBA?

619


Why won’t the jvm terminate when I close all the application windows?

750


what is meant by JRMP?

1811


Can we sent objects using Sockets?

645


What is the relationship between the canvas class and the graphics class?

540


What are the different class loaders used by jvm?

597


What state does a thread enter when it terminates its processing?

602


What are the sequence of steps to write pub or sub model kind of application?

1893


Why does the tag url-encode javascript and mailto links?

578