• Post Reply Bookmark Topic Watch Topic
  • New Topic

Legacy methods in collections  RSS feed

 
jeya prabha
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is legacy methods in collections?

Thanks,
jeyaprabha
 
Campbell Ritchie
Marshal
Posts: 56546
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Methods like addElement() as well as add(). If you look in the older classes eg java.util.Vector, you find a few such methods which are not part of the java.util.List interface. Those are regarded as the legacy methods, which are still there because Sun (at least to date) have always retained legacy code.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!