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

how to write a server program and sending the mails to the server using smtp protocol please help me

1769


What are streams?

849


How many types of array are there?

732


Difference between final and effectively final ? Why is effectively final even required ?

751


Can a list be null in java?

763


What is meant by JVM? Is JVM platform independent or not?

825


Enlist few advantages of inheritance?

835


How is java hashmap implemented?

766


What is string args [] in java?

755


Write a java program to check if a number is prime or not?

747


What is a static class in java?

731


What is a heavyweight component?

744


What is the use of java?

727


What is jit and its use?

763


Is math an abstract class in java?

717