what is difference between vector and arraylist?.
Answer Posted / srinivas
Vector is synchronized and compare to array list this slow
access, by defaulst the vector is 10,this is legacy class
Where as arraylist is unsynchronized and fast random
access,in arraylist there is no default size automatically
it is growable once the object is created it will be
allocated,this is advanced class.
| Is This Answer Correct ? | 10 Yes | 2 No |
Post New Answer View All Answers
my interviewer asked me what technical specification you used how to answer that question
What is the use of hashcode in java ?
what is mean by hasing and maping in java platform and advantage?
What are the considerations to be made in case of loops in java ?
What are the uses of the set interfaces in the 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 are the types of the main implementing classes in the map interfaces? : java collections
Which sorting algorithm is used by collections.sort() in java ?
What is the Spring2.5 MVC Navigation flow?
What is the use of the list interface in the java collection? : java collections
What is an algorithm in java collection framework? : java collections
How do I find jre path in windows?
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 different types of collections views being provided by the map interface? : java collections
How is hashset maintained in memory by java ?