Check instanceof behaviour

AinstanceofB?Correct?