instanceof操作符instanceof是Java中最基本、最常用的类型判断操作符,它用于检查一个对象是否是某个特定类或其子类的实例,或者是某个特定接口的实现,语法:objectinstanceofTypeobject:...