File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Deprecation of Methods 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 "Deprecation of Methods" Watch "Deprecation of Methods" New topic

Deprecation of Methods

Priyanjan Chaurasia

Joined: May 30, 2007
Posts: 1
Hi, In java APIs, several methods have been deprecating which no longer seems safe,secure and reflects bad coding practise. Method those are deprecated in JDK 1.1 does also exists in later version of 1.4 JDK. What i belive that deprecated methods do no longer exist in later release versions of JDK. but i found it do. Kindly clarify me whether such deprecated method really removed from later version of JDK or do they exist???.
Rob Spoor

Joined: Oct 27, 2005
Posts: 20193

Sun does not remove these methods because it will break older applications that still use them.

You will see though that other libraries, like those in Apache Commons do remove these methods. The deprecation message says something like "this method will be removed in version xxx". This allows programmers to stick to the older version. That's not something you can do with the core API though, as it automatically gets updated each time you update your JRE.

How To Ask Questions How To Answer Questions
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 45338
And welcome to JavaRanch
wood burning stoves
subject: Deprecation of Methods
It's not a secret anymore!