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 is rmi and steps involved in developing an rmi object?

561


What are the advantages of inner classes?

507


What is skeleton and stub?

587


Does java map allow duplicates?

486


How many bits is a float?

534






Why to use nested classes in java?

583


how we can create packages in java?

514


What is meant by null and void?

531


What is the difference between length and length () in java?

523


What is the exact difference in between Unicast and Multicast object?

1504


How to create com object in Java?

644


What is lazy initialization in java?

550


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

572


What is the use of arraylist class in java?

552


How does finally block differ from finalize() method?

580