Differentiate Vector and ArrayList?

Answer Posted / v.kannan

Vector is synchronized where as
Arraylist is not synchronized.
In Array List there is no guarantee elements will be in
order(It will vary System to System)

Is This Answer Correct ?    2 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we extend immutable class?

522


Can we have static methods in an interface?

549


How do you declare a variable?

617


What is the difference between the final method and abstract method?

535


What is callablestatement? How you can call stored procedure to pass in parameter?

540






What advantage do java's layout managers provide over traditional windowing systems?

539


How many days will it take to learn java?

506


What do negative exponents mean?

540


What is meant by nested loop?

535


What is regex java?

553


How many types of memory areas are allocated by jvm?

556


What is the difference between Java and C++?

608


How to obtain a performance profile of java program

538


How do you check if a string is lexicographically in java?

494


What is an infinite loop?

537