为什么会出现这种错误?
Note: C:\Documents and Settings\CAOLILI\My Documents\wanwan.java uses or overrides a deprecated API.
Note: Recompile with -deprecation for details.
import java.util.*;
public class wanwan
{ public static void main(String[] args)
{ Date d = new Date();
int a = d.getDate();
int m = d.getMonth();
int y = d.getYear();
System.out.println(a);
System.out.println(m);
System.out.println(y);
}
}
语法应该是没有问题吧??可以生成.class文件,运行出错。