How does Instanceof work in Java?

An instanceof in Java is a comparison operator which, given an object instance, checks whether that instance is of a specified type (class/sub-class/interface) or not . Just like other comparison operators, it returns true or false.

Sizin İçin Seçtik  What does Instanceof mean in Java?

Leave a Reply

Your email address will not be published. Required fields are marked *