• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Vector and hashtable inTiger

 
Chinmay Bajikar
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
Is it true that Vector and Hashtable are going to be deprecated in Tiger.what are the alternatives classes we need to replace the use of Vector and Hashtable with?
Thanks,
Chinmay
 
Jaap van Hengstum
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ArrayList instead of Vector, HashMap instead of Hashtable (also Iterator instead of Enumeration)
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's a collections crib sheet that I keep around to help me pick from the new collections. I oughtta add links to the Sun Javadoc, shouldn't I? Hope it's helpful.
[ July 25, 2003: Message edited by: Stan James ]
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it true that Vector and Hashtable are going to be deprecated in Tiger.
I doubt it, and I haven't heard that anywhere else. On the other hand I kind of hope it's true. Vector, Hashtable, and Enumeration have had superior replacements available for about five years now. Why anyone would still be using the legacy classes is a mystery, unless maybe you've been working with applets and need to support a Java 1.1 VM's. In which case, my condolences to you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic