instanceof 关键字

boolean = Object(类引用名) instanceof  Class(类名)

作用:判断符号左边的引用指向的对象是否是右边这个类的对象;

原文地址:https://www.cnblogs.com/JiangNian/p/8418617.html