标签:interface alt this 报错 name main contain att snippet
Java中的instanceof是用来判断某个实例是不是某个类的实例。
例如:A instanceof B (A为某个实例,B为某个类名)
如果A为B的实例,则:(A instanceof B)==true 反之==false
代码举例:
输出结果:
标签:interface alt this 报错 name main contain att snippet
原文地址:http://www.cnblogs.com/dengyungao/p/7525148.html