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

What is the abstract class?

597


What is the properties class in java programming?

546


What is java in detail?

562


What is mnemonic in assembly language?

554


How do you clear a list in java?

603






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

576


What are the advantages and disadvantages of reference counting in garbage collection?

575


Can we catch more than one exception in a single catch block?

629


Why are global variables used?

503


what is the difference between yielding and sleeping? : Java thread

525


What is string pooling concept?

555


When do we use hashset over treeset?

536


Explain a situation where finally block will not be executed?

576


What is method overloading in JAVA? Why is it not present in C ?

592


How many tetrahedral voids are there in bcc?

547