aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Deprecation of Methods" Watch "Deprecation of Methods" New topic
Author

Deprecation of Methods

Priyanjan Chaurasia
Greenhorn

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
Sheriff

Joined: Oct 27, 2005
Posts: 19541
    
  16

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.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36453
    
  15
And welcome to JavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Deprecation of Methods
 
Similar Threads
Java backward compatibility ?s
SpinnerDateModel
For Loop mystery
Java 2
Accessing Environment Variable in JDK 1.3