The instanceof operator compares an object to a specified type. You can use it to test if an object is an instance of a class, an instance of a subclass, or an instance of a class that implements a particular interface.说白了,就是看一个实例是不是一个指定的类型或者是不是它的子类型或者是不是它的接口实现。BB都是一个类,而AA是一个实例