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

who will give req's to u?. how they send req's to u? . what design documents contains?. when bugs raised on other developer code how to report to them?.(throgh mail or ........). how to retrive 100 recods from dao layer to presentation layer.using which collection?. what is sequence diagram.?.

2078


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

2781


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

832


What is the use of the list interface in the java collection? : java collections

827


What are the different types of features of the java collections framework? : java collections

838


Which interface does java.util.hashtable implement?

947


What are the different types of ways where you can iterate over a list? : java collections

784


What is the enumerator of the java collection framework? : java collections

804


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

2123


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

847


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

835


What are the types of java collections? : java collections

772


Hi Friends , am newbie to ajax. For example just consider one account registration - A form contains 8 text fields with submit button. In this form second texbox contains "username " . On right side of text box there is a label box . On clilck action i need to determine user is available or not. Is it possible on clicking label or should i click submit button.

1829


Which server-side script takes the input from JavaScript, can access the database if it needs to, and processes the data.

1847


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

802