is instanceof operator expensive ?

Is instanceof operator expensive and bad to use?

There is always discussion about instanceof operator being expensive and performance intensive and should be avoided wherever possible.


Here is a review of instanceof which I liked :

Hope it clears all the questions about instanceof operator.

Happy coding :)


Powered by

neotrade NeotradeAnalytics is providing best and affordable priced realtime data (Futures and options , Currency) feed for worlds best charting tool Amibroker. We are official vendors of NSE India

Support us

Follow Us on Twitter
Find Us on Facebook
Follow Us on Google
Follow Us on Pinterest