📜  如何检查实例 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:17.890000             🧑  作者: Mango

代码示例1
The instanceof keyword checks whether an object
is an instance of a specific class or an interface.
The instanceof keyword compares the
instance with type. The return value
is either true or false .