> 原文:[https://www . geesforgeks . org/instance of-operator-vs-is instance-method-in-Java/](https://www.geeksforgeeks.org/instanceof-operator-vs-isinstance-method ...
The instanceof operator in Java is used to check whether an object is an instance of a particular class or interface. It returns true if the object is an instance of the specified class or implements ...