• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Legacy class & depracted class

 
Manish Thapliyal
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please explain me the differnce between deprecated class & legacy class.
When a class is called depreacted class & when it is called legacy class.
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

Deprecated is 'formally' used when a class/method has actually be replaced by a new preferred way of doing things. Keeping the deprecated method is often used for maintaining backwards compatibility.

Legacy classes are classes that should no longer be used and are 'obsolete' but are still around because they are usually used internally by Java itself (e.g. They are classes that you don't directly interact with, but Java itself does).

My explanation perhaps isn't the clearest, so hopefully some others will pop in and answer as well.

Hope that helps!
 
Campbell Ritchie
Sheriff
Posts: 48382
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Calling a class or method "deprecated" is more assertive than "legacy;" it is something one ought not use at all, rather than simply "old-fashioned."
 
Manish Thapliyal
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what happened on this forum also nonone is able to give an proper answer
 
Campbell Ritchie
Sheriff
Posts: 48382
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Manish Thapliyal:
what happened on this forum also nonone is able to give an proper answer
I think you have had answers; if they didn't explain your particular problem you ought to have asked again.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic