QuizIntermediate
instanceof Narrowing
Learn how instanceof refines a variable's type within a branch.
Inside `if (x instanceof Dog) { ... }`, what is the type of `x` in the block?
Learn how instanceof refines a variable's type within a branch.
Inside `if (x instanceof Dog) { ... }`, what is the type of `x` in the block?