帮忙,编译提示错误了
import java.util.Date;
public class Person1{
private String name;
private int age;
private Date birthDate;
public Person1(String name,int age,Date d){
this.name=name;
this.age=age;
this.birthDate=d;
}
public Person1(String name,int age)
{
this(name,age,null);
}
public Person1(String name,Date d){
this(name,30,d);
}
public Person1(String name){
this(name,30);
}
public static void main(String args[]){
Date d1=new Date(1970,1,1);
Person1 p1=new Person1("Tom",18,d1);
Person1 p2=new Person1("bily",29);
Person1 p3=new Person1("Kity",d1);
Person1 p4=new Person1("john");
}
}
编译提示错误:Note: person1.java uses or overrides a deprecated API.
Note: Recompile with -deprecation for details.
这是怎么回事啊?