This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Legacy classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Legacy classes" Watch "Legacy classes" New topic

Legacy classes

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1404
Why Vector and HashTable's are called as Legacy classes?
marc weber

Joined: Aug 31, 2004
Posts: 11343

Legacy: "...Computing - denoting software or hardware that has been superseded but is difficult to replace because of its wide use." ~Oxford

Java's newer collections framework provides alternatives that are generally preferable to Vector and Hashtable. In particular, see ArrayList and HashMap. So although new code (probably) shouldn't be written using Vector and Hashtable, there's still plenty of old code out there keeping these classes alive.
[ February 14, 2005: Message edited by: marc weber ]

"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
It is sorta covered in the JavaRanch Style Guide.
subject: Legacy classes
It's not a secret anymore!