Differentiate Vector and ArrayList?

Answer Posted / v.kannan

Vector is synchronized where as
Arraylist is not synchronized.
In Array List there is no guarantee elements will be in
order(It will vary System to System)

Is This Answer Correct ?    2 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does chrome use java?

721


Assume a thread has lock on it, calling sleep() method on that thread will release the lock?

874


Is null an object java?

743


What is the difference between Java and C++?

839


Can we sort arraylist in java?

779


What is protected access modifier?

789


Can an object subclass another object?

768


What is the base class for error and exception?

775


Explain about arraylist?

772


When do we use hashset over treeset?

754


In the below example, how many string objects are created?

775


What does || mean in code?

792


What are different types of references?

752


What is jar?

845


What is the common usage of serialization?

808