Checking instance of Sibling class
===

As we know that we can use `instanceof` operator to check whether object A is an instance of class A. Similarly, I was wondering whether is there anyway we can check whether object A is an instance of class B, where both, class A and class B extends X. ie Classes A and B are siblings