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?
2 Answers
+ 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.
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