Is Instanceof Java slow?

Instanceof is very fast . It boils down to a bytecode that is used for class reference comparison. Try a few million instanceofs in a loop and see for yourself.

Sizin İçin Seçtik  Why do we use Instanceof operator in Java?

Leave a Reply

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