Advertisement

instanceof Java Keyword Tutorial

instanceof Java Keyword Tutorial Free preview of my Java course:

The instanceof keyword returns true if what's on the left is a class, subclass or interface of what's on the right. Like this:

someObject instanceof someClass;

This lets you quickly check if an object is related to another class or interface! I honestly don't use it very often, but it can be very helpful for certain situations.

I hope you enjoyed this instanceof java tutorial! -

Free tips and programs:
Try my Java course for free:

Recommended Channels to Subscribe to
Career Karma:
TheNewBoston:

~


(2nd channel)

Alex Lee

instanceof java,instanceof,instanceof keyword,instanceof keyword in java,java instanceof,java instanceof keyword,java instanceof operator,java instanceof tutorial,instanceof java tutorial,what is instanceof java,java,java instance of a class,java instance,

Post a Comment

0 Comments