To make this more explicit: when an API method is "deprecated", this basically means that there's a new, better alternative and, while the method still exists,
you should change your code to use the new method if possible.
Note that JDK 1.2, introduced in 1998, was the first JDK to introduce the notion of deprecated APIs in
Java. That was six years ago. To this date, no deprecated APIs have ever actually been
removed from the JDK -- so there's no imminent danger that if you use a deprecated API, your program will stop working in the next point release.