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 Beginning Java and the fly likes Legacy class & depracted class 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 » Beginning Java
Bookmark "Legacy class & depracted class" Watch "Legacy class & depracted class" New topic
Author

Legacy class & depracted class

Manish Thapliyal
Greenhorn

Joined: Aug 07, 2007
Posts: 17
Please explain me the differnce between deprecated class & legacy class.
When a class is called depreacted class & when it is called legacy class.


Manish
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

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!


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37902
    
  22
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

Joined: Aug 07, 2007
Posts: 17
what happened on this forum also nonone is able to give an proper answer
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37902
    
  22
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Legacy class & depracted class
 
Similar Threads
Legacy Methods
finalize method
Legacy classes
Another 'Y' game
why some classes are called deprecated & some legacy?