Is it good to use Instanceof in Java?

The instanceof operator in Java is used to check if a given reference is an instance of (aka object of) a given class. Though it is useful in some situations, it is a bad practice to use the instanceof operator .

Sizin İçin Seçtik  What is typeof in JS?

Leave a Reply

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