instanceof 对instanceof的理解大概就是很浅的,下面这样:s1是Student类的实例 Student s1 = new Student(); System.out.println(s1 instanceof Student);//返回值为ture