instanceof 运算符

java中的instanceof=======》二元运算符

用法:
result = object instanceof class
参数:
result 是boolean类型
object 是对象
class 是 已定义的类
解释:如果object是class的一个实例,则instanceof 运算符返回true,反之,返回false
posted @ 2016-11-05 21:21  富富兮869  阅读(127)  评论(0编辑  收藏  举报