The Java instanceof operator is used to test if the object or instance is an instanceof the specified type. In this problem we have given you three classes in the editor: Student class Rockstar class ...
> 原文:[https://www . geesforgeks . org/instance of-operator-vs-is instance-method-in-Java/](https://www.geeksforgeeks.org/instanceof-operator-vs-isinstance-method ...