Hello! Im new to the java. During creating a program Im getting a warning "@suppresswarnings( deprecation )". I wants to know why is that warning occur and how to avoid it.
ahmed.talha.16
-3
Newbie Poster
Recommended Answers
Jump to PostAs Oracle keep improving Java, there are times when old classes and methods get replaced by newer better versions. The old versions are still there, so existing programs will continue to work, but they are marked as "deprecated" to tell programmers that they should replace or upgrade their code.
If …
Jump to PostIMO you should never blindly just ignore any warning. If you're not sure of why you get it, what the risks are of ignoring it and find those acceptable, and there's a solution, fix your code rather than ignoring the warning.
Deprecated methods are deprecated for a reason, they often …
All 6 Replies
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
jwenting
1,889
duckman
Team Colleague
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
ahmed.talha.16
-3
Newbie Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
jwenting
1,889
duckman
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.