ojava uses or overrides a deprecated API
807601Feb 4 2008 — edited Feb 4 2008can any body help me to uderstatnd why following message comes everytime after compilation with 0 errors if i use DataInputStream or BufferedReader
?
message is as below
Note: StringTest.java uses or overrides a deprecated API.
Note: Recompile with -deprecation for details.
my program is as below
import java.io.*;
class Test
{
public static void main(String[] args)
{
try
{
DataInputStream di=new DataInputStream(System.in);
System.out.println("Enter a string");
String st=di.readLine();
System.out.println(st);
}
catch(Exception e)
{
}
}
}