what is the difference between ArrayList and Vector

Answer Posted / devarathnam

Hi...
ArrayList is not synchronized(not Thread-safe)but Vector is
Synchronized(Thread-safe)
ArrayList gives u better performance than Vector

Is This Answer Correct ?    28 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain restrictions for using anonymous inner classes?

582


Explain the difference between transient and volatile in java?

571


what is the purpose of the runtime class?

549


What is the reason behind using constructors and destructors?

549


What is the ==?

461






Which method you will use to create a new file to store some log data. Each time a new log entry is necessary, write string to the file in java ?

627


What is the purpose of default constructor?

572


What about features of local inner class?

613


Explain different ways of creating a thread?

525


Is java pass by value or pass by reference?

533


Difference between Preemptive scheduling vs. Time slicing?

565


What is the difference between a loader and a compiler?

520


what is anonymous class in java?

538


What is unicode with example?

611


Can private class be inherited in java?

547