answersLogoWhite

0

That is used to verify whether an object is based on the specified class (or a subclass).

User Avatar

Wiki User

10y ago

Still curious? Ask our experts.

Chat with our AI personalities

MaxineMaxine
I respect you enough to keep it real.
Chat with Maxine
ViviVivi
Your ride-or-die bestie who's seen you through every high and low.
Chat with Vivi
LaoLao
The path is yours to walk; I am only here to hold up a mirror.
Chat with Lao
More answers

It is used to check whether an object is defined as being of a certain class.

User Avatar

Wiki User

10y ago
User Avatar

Add your answer:

Earn +20 pts
Q: What is the use of the instanceof keyword in Java?
Write your answer...
Submit
Still have questions?
magnify glass
imp