what is difference between vector and arraylist?.

Answer Posted / arjun kumar

If we want to arrange a collection of objects into an other object then we will use either ArrayList or Vector. When we use these classes all the objects that are placed in it will be stored sequentially one after the other.

ArrayList : If we want to store same type of objects then we will use ArrayList class.

Vector : If we want to store different type of objects then we will use Vector class.

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I find jre path in windows?

531


Hi we have an urgent requirement for Java/J2ee technical lead position & also looking for "Java Guidewire claimcentre" experienced professional for Bangalore location if interested can reach srisanh@gmail.com

2541


What is an algorithm in java collection framework? : java collections

583


What are the different types of collections views being provided by the map interface? : java collections

615


What do you understand by synchronization? Why is it important?

576






What are the types of java collections? : java collections

544


What is java collection? : java collections

582


Explain the OOPS concept in Realtime Scenarion ? Take example as CAR. Please explain indetail ?

2566


what is mean by hasing and maping in java platform and advantage?

1833


Hi frnds how to lock an user when he enter wrong credentials more than 3 time using java or j2ee tech take username and password in a bean no need to connect DB and validate give me some sample application code or links its urgent for me thanks in advance

1881


What are the classes in the java collection framework? : java collections

597


HOW MUCH PERCENTAGE WE DEDUCT FOR OUR SUPPLIERS OR OTHER PROFESSIONALS

1582


please mail me the interview question based on java/j2ee

1537


What are the types of interface used in the java collections? : java collections

591


Which java collection class can be used to maintain the entries in the order in which they were last accessed?

562