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.
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.