.getClass().getName() 这是最常见的一种判断类型的方法
.getClass().getName()
instanceof 用于判断 对象 是否为某个类的实例 Boolean值
instanceof
各种is方法
.class后缀