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

In java, how many ways you can take input from the console?

617


How do you reverse a string in java without using string buffer?

662


What are the different types of inner classes?

624


How do you remove an object from an arraylist in java?

543


In the below example, what will be the output?

675






What are the differences between abstract class and interface?

601


Can a serialized object be transferred via network?

596


What is a singleton class in Java?

603


How do you create a first line indent?

600


how to create multithreaded program? Explain different ways of using thread? : Java thread

619


What does super keyword do?

648


What is the use of put method?

622


What is treeset in java collection?

621


How to sort double array in java?

677


how to create constants in java?

710