> hi,
> when my java program run, it shows,
> Note: D:\javaexample\myJavaPgm.java uses or overrides
> a deprecated API.
> Note: Recompile with -Xlint:deprecation for details.
>
>
> what this error message.
>
> Can I ignore this warning ?.
> or how can i solve this warning?.
Deprecation means a method or class has been identified as obsolete. That means that there is a newer and better alternative to something you are doing. It also means that perhaps one day the deprecated thing will disappear from the API (unlikely probably but could happen).
To solve the warning you will have to find out what it's complaining about.
javac -deprecation myJavaPgm.java
Will tell you what exactly is the problem.
Then you can look in the API for alternatives.