A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Java
»
Beginning Java
Author
difference between vector and array list
vidhyasagar reddy
Ranch Hand
Joined: Jul 05, 2005
Posts: 40
posted
Sep 24, 2005 04:38:00
0
Hai every body
vector is synchronized and arraylist is not synchronized
can any body explain me what happens we use the vector and arraylist in the
servlet
.
will it produce the same o/p
or not?
if possible provide me sample code
Ernest Friedman-Hill
author and iconoclast
Marshal
Joined: Jul 08, 2003
Posts: 24081
15
I like...
posted
Sep 24, 2005 05:15:00
0
ArrayList
is a replacement for Vector. Never use Vector in new code -- only use it when needed to interface with existing code that works with Vector.
I'm going to move this to Java in General (Beginner) for further discussion.
[Jess in Action]
[AskingGoodQuestions]
Tony Morris
Ranch Hand
Joined: Sep 24, 2003
Posts: 1608
posted
Sep 24, 2005 15:33:00
0
When should I use java.util.Vector/java.util.Hashtable?
http://jqa.tmorris.net/GetQAndA.action?qids=53&showAnswers=true
Tony Morris
Java Q&A (FAQ, Trivia)
I agree. Here's the link:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: difference between vector and array list
Similar Threads
What's diff btw ArrayList and Vector?
Array List vs Vector
ArrayList vs Vector
elements inside arrays
performance : arraylist vs vector
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter