The code is using OLD methods that the current JDK developers don't think should be used any more.
Often that is because there are problems with using those old methods or because there are newer and better ways to do the job.
If you read the API code for the deprecated methods, there will be recommendations for better techniques.