Java中的instanceof

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

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

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