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
What do you understand by synchronization? Why is it important?
What are the different types of ways where you can iterate over a list? : java collections
What are maps interfaces in the java collections? : java collections
What is the Spring2.5 MVC Navigation flow?
What are the different types of classes implemented in the set interfaces? : java collections
What is java collection? : java collections
Should we create system software ( e.g operating system ) in java ?
What are the interfaces in java collections? : java collections
Which server-side script takes the input from JavaScript, can access the database if it needs to, and processes the data.
What is the difference between comparable and comparator in java.util pkg?
How is hashset maintained in memory by java ?
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
What are the differences between the java collection and the java list? : java collections
What are the types of the main implementing classes in the map interfaces? : java collections
Which java collection class can be used to maintain the entries in the order in which they were last accessed?