This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread 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 Murach's Java Servlets and JSP this week in the Servlets 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Disadvantage of using Vectors
 
Similar Threads
Sample Java Program and codes for TestCase
About vectors.
Threads,serialisation, static variables - java basic doubts
Lookahead with Java
Collection- Fast Retrieval