what is the diff b/w arraylist and vector?

Answer Posted / rajesh_mari24

arraylist methods are synchronized.so all methods are thread
safe.performance is very low.it introduced in 1.2 ver
vector methods are non synchronized.so all methods are not
thread safe.performance is high.it introduced in 1.0 ver

Is This Answer Correct ?    5 Yes 37 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are different types of expressions?

552


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

573


how to know the total memory occupied by the objects in the ArrayList(Array list may contain duplicate objects)

1901


Is an empty arraylist null?

592


how to one war file class to another war file class?

1552






What are heterogeneous objects?

566


Can a vector contain heterogenous objects?

594


Can we split string with in java?

528


Can you inherit a constructor java?

571


List the interfaces which extends collection interface?

535


What is class and its types?

536


How do I find and replace in word?

530


Is array serializable java?

515


Give the hierarchy of inputstream and outputstream classes.

608


What is package private scope in java?

533