Java中的instanceof

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

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

posted @ 2013-06-07 01:32  haiziguo  阅读(192)  评论(0编辑  收藏  举报