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 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of a parameter?

523


What are keywords in java?

572


Explain hashset and its features?

572


Explain yield() method in thread class ?

614


Explain the difference between an Interface and an Abstract class?

622






What is the base class for error and exception?

551


Can a class declared as private be accessed outside it’s package?

508


What is the purpose of static keyword in java?

510


What is equlas() and hashcode() contract in java? Where does it used?

602


I want to re-reach and use an object once it has been garbage collected. Define how it’s possible?

569


What is ide with example?

542


How to store image in arraylist in java?

508


What is the association?

543


what is the purpose of "virtual"?

564


Can we override compareto method?

496