This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
Please tell me all differences b/w a Vector and an ArrayList **Plz also tell the situations in which each one of them should be used
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12271
1
posted
0
Questions such as this are addressed in the JavaDocs for the java.util package. No-one should try to be a Java programmer without knowing how to navigate in the JavaDocs. If you have room on your hard drive why not download and install a copy. Bill
Originally posted by Raj Kumar Bindal: Please tell me all differences b/w a Vector and an ArrayList **Plz also tell the situations in which each one of them should be used
Hi Raj,
Please download and install the JAVA DOC. It will solve most of your doubts.
There is only one fundamental difference between the Vector and ArrayList, even though both implement from same base interface.
The Vector is synchronized, means it is thread safe. Only one thread of your application can access a vector at a time.