instanceof Java Keyword Tutorial #90
70.1K views on YouTube
$1,500 OFF ANY Springboard Tech Bootcamps with my code ALEXLEE1500. See if you qualify for the JOB GUARANTEE! 👉 https://bit.ly/3HX970h
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!
Full Java Tutorial For Beginners Playlist: https://youtube.com/playlist?list=PL59LTecnGM1NRUyune3SxzZlYpZezK-oQ&si=6OSbyiJxFsTjqL_9
Free Tips: https://bit.ly/3U6HXcb
Disclosure: Springboard link provided is linked to my affiliate account & supports the channel.
Alex Lee