What is the difference between array list and vector list?



What is the difference between array list and vector list?..

Answer / Kamlesh

"Array lists (ArrayList in Java) and vector lists (Vector in Java) are both resizable-array data structures. However, Vector is synchronized by default, making it more suitable for multi-threaded environments at the cost of slower performance."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

Write an algorithm to show various operations on ordered list and arrays

1 Answers  


Why do we need a data structure?

1 Answers  


Define static data structures?

1 Answers  


Where is data structure used?

1 Answers  


List the abstract operations in the set?

1 Answers  


What are b tree keys?

1 Answers  


When will you sort an array of pointers to list elements, rather than sorting the elements themselves?

5 Answers  


What is difference between an Array and ArrayList?

1 Answers   UGC Corporation,


Of the following tree structure, which is, efficient considering space and time complexities? (a) Incomplete Binary Tree (b) Complete Binary Tree (c) Full Binary Tree (b) Complete Binary Tree.

1 Answers  


What is adt example?

1 Answers  


why do tree always takes o(log n) time?

2 Answers   TCS,


Write an algorithm that counts number of nodes in the circular linked list

1 Answers  


Categories