instanceof
判断一个对象是否是指定类型的实例Student stu1=new Student();Student stu2=new Student();Teacher tec1=new Teacher();Teacher tec2=new Teacher();sout(stu1 instanceof Student) // truesout(tec1 instanceof Student) // error