Java中的instanceof

if (a instanceof CC)
{
//..............
}

判断a是否能转化为指定的类型或接口

原文地址:https://www.cnblogs.com/lzhp/p/3123119.html