Sobes.tech
Junior

What does the instanceof operator check?

sobes.tech AI

Answer from AI

In Java, the instanceof operator is used to check whether an object is an instance of a specified class or its subclass.