0

Im getting error while running thread synchronization program

Error is " java uses or overrides a deprecated api" what does it mean and how to get rid of it?

22nd Apr 2020, 11:58 PM
Sagar Gupta
Sagar Gupta - avatar
2 Respostas
+ 1
It just means that a method or constructor that is being used in your code is deprecated. Your code should still compile and run ok. If you want help finding out which part of your code is causing the issue you will need to post it.
23rd Apr 2020, 4:52 AM
ChaoticDawg
ChaoticDawg - avatar
0
you have used a class or API method that is no longer officially recommended for use (it is Deprecated) because it can cause problems and may be removed in the future. Study the documentation for this class, there are recommendations on how to replace this method better. ex. https://docs.oracle.com/en/java/javase/14/docs/api/java.base/java/lang/Integer.html#%3Cinit%3E(int) use compilator options to show all Warnings of used deprecated methods
11th Sep 2020, 7:38 AM
zemiak