The instanceof operator in Java 14 has been extended to allow for what's called a "test type pattern" which allows for Pattern Matching to be used. This test type pattern is a combination of a ...
> 原文:[https://www . geesforgeks . org/instance of-operator-vs-is instance-method-in-Java/](https://www.geeksforgeeks.org/instanceof-operator-vs-isinstance-method ...
Introduced with the Java 17 release, pattern matching enhances the instanceof operator so Java developers can better check and object's type and extract its components, and more efficiently deal with ...