Evaluating instanceof-Operator in Java