向下转型中instanceof介绍 使用强转时,可能会出现ClassCastException异常 instanceof 关键字 例如 a instanceof A 判断对象a 是否是类A的实例 如果是,返回true. 否则 返回false.