This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JSP and the fly likes Disadvantage of using Vectors Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Disadvantage of using Vectors" Watch "Disadvantage of using Vectors" New topic
Author

Disadvantage of using Vectors

B Mampilli
Ranch Hand

Joined: Aug 05, 2002
Posts: 61
I am using vectors to store results retrieved by servlets from the database. These vectors are then used by JSP's to display on the html page. Is there any disadvantage of using vectors? Should Hashtables be used instead of Vectors?
Boney
Amol Desai
Ranch Hand

Joined: Jan 29, 2003
Posts: 82
Hi,
You could use arraylist instead.
ArrayList are faster than vectors since they are unsynchronised.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Disadvantage of using Vectors