what is the diff b/w arraylist and vector?

Answer Posted / shweta dhankani

Above answer is wrong..
Infact it is opposite..
Vector methods are synchronized and are thread safe.
Whereas Arraylist methods are not synchronized and thread safe.

Is This Answer Correct ?    30 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is singleton in java?

595


Why do we need variables?

529


What is comparator in java?

549


Does the order of public and static declaration matter in main method?

612


Why is a string immutable?

539






How long will it take to learn java?

502


How java is similar to c?

584


Where is jre installed?

585


Can an abstract class be a final class?

527


Is java util regex pattern thread safe?

514


Difference between method overloading and overriding.

575


What modifiers may be used with a top-level class?

571


What is valid keyword in java?

549


What are classloaders?

597


What are the special characters?

531