Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Beginning Java
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Jeanne Boyarsky
Ron McLeod
Sheriffs:
Paul Clapham
Liutauras Vilda
Devaka Cooray
Saloon Keepers:
Tim Holloway
Roland Mueller
Bartenders:
Forum:
Beginning Java
difference between vector and array list
vidhyasagar reddy
Ranch Hand
Posts: 40
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Posts: 24207
46
I like...
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Posts: 1608
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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)
What are you saying? I thought you said that Santa gave you that. And this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
ArrayList vs Vector
elements inside arrays
Array List vs Vector
What's diff btw ArrayList and Vector?
performance : arraylist vs vector
More...